Last active
August 29, 2015 14:17
-
-
Save 1syo/765999b0f0130ec590b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADD_RANGE_1 = (-1.50..-0.50) | |
ADD_RANGE_2 = (0.50..3.50) | |
ADD_STEP = 0.25 | |
ADD_VALUES = (ADD_RANGE_1.step(ADD_STEP).to_a + ADD_RANGE_2.step(ADD_STEP).to_a).freeze |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ADD_RANGE = (0.50..3.50) | |
ADD_STEP = 0.25 | |
ADD_VALUES = ADD_RANGE.step(ADD_STEP).to_a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
最初に
eyesight.old.rb
がありましたADD_RANGEに
(-1.50..-0.50)
が増えます。(-1.50..3.50)
ではありません。eyesight.new.rb
の方法は嫌だな.. もっとシンプルにしたいな。。(いまここ)