module Rumanu::Meaning

Constants

GEM_ROOT

Public Instance Methods

destiny() click to toggle source
# File lib/rumanu/meaning.rb, line 20
def destiny
  case self
  when 1..9
    load_meaning['destiny'][self]
  else
    'Value out of range. Please choose a number between 1 and 9'
  end
end
load_meaning() click to toggle source
# File lib/rumanu/meaning.rb, line 7
def load_meaning
  YAML.load_file("#{GEM_ROOT}/rumanu/meanings/en.yml")
end
meaning() click to toggle source
# File lib/rumanu/meaning.rb, line 11
def meaning
  case self
  when 1..9
    load_meaning['meaning'][self]
  else
    'Value out of range. Please choose a number between 1 and 9'
  end
end