class HyakuninIssyu::Poet

Public Class Methods

new(id) click to toggle source
# File lib/HyakuninIssyu.rb, line 131
def initialize(id)
        @poet = @@poets[id-1]
end

Public Instance Methods

female?() click to toggle source
# File lib/HyakuninIssyu.rb, line 169
def female?
        @poet['sex'] == 2
end
id() click to toggle source
# File lib/HyakuninIssyu.rb, line 135
def id
        @poet['id']
end
info() click to toggle source
# File lib/HyakuninIssyu.rb, line 161
def info
        @poet['info']
end
male?() click to toggle source
# File lib/HyakuninIssyu.rb, line 165
def male?
        @poet['sex'] == 1
end
monk?() click to toggle source
# File lib/HyakuninIssyu.rb, line 173
def monk?
        @poet['monk'] == 1
end
name() click to toggle source
# File lib/HyakuninIssyu.rb, line 139
def name
        Name.new(@poet)
end
period() click to toggle source
# File lib/HyakuninIssyu.rb, line 157
def period
        @poet['period']
end
semimaru?() click to toggle source
# File lib/HyakuninIssyu.rb, line 177
def semimaru?
        @poet['id'] == 10
end