class Ehou::EhouString

Constants

EHOUS
EHOU_ENE
EHOU_NNW
EHOU_SSE
EHOU_WSW

Public Class Methods

new(year) click to toggle source
Calls superclass method
# File lib/ehou/ehou_string.rb, line 22
def initialize(year)
  y = year % 10
  @ehou = EHOUS[y]
  super(@ehou[:ja])
end

Public Instance Methods

angle() click to toggle source
# File lib/ehou/ehou_string.rb, line 28
def angle
  @ehou[:angle]
end
shorten() click to toggle source
# File lib/ehou/ehou_string.rb, line 32
def shorten
  @ehou[:shorten]
end
to_en() click to toggle source
# File lib/ehou/ehou_string.rb, line 36
def to_en
  @ehou[:en]
end
to_ja() click to toggle source
# File lib/ehou/ehou_string.rb, line 40
def to_ja
  self
end