Module: Rumanu::Meaning
- Included in:
- Integer
- Defined in:
- lib/rumanu/meaning.rb
Constant Summary collapse
- GEM_ROOT =
File.("../..", __FILE__)
Instance Method Summary collapse
Instance Method Details
#destiny ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/rumanu/meaning.rb', line 19 def destiny case self when 1..9 return load_meaning['destiny'][self] else return "Value out of range. Please choose a number between 1 and 9" end end |
#load_meaning ⇒ Object
6 7 8 |
# File 'lib/rumanu/meaning.rb', line 6 def load_meaning YAML.load_file("#{GEM_ROOT}/rumanu/meanings/en.yml") end |
#meaning ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/rumanu/meaning.rb', line 10 def meaning case self when 1..9 return load_meaning['meaning'][self] else return "Value out of range. Please choose a number between 1 and 9" end end |