class FeastFast::Feast
Attributes
status[R]
text[R]
Public Class Methods
new(hsh={:status => 0, :text => "No feast today"})
click to toggle source
# File lib/feast_fast/feast.rb, line 14 def initialize(hsh={:status => 0, :text => "No feast today"}) @status = hsh[:status] @text = hsh[:text] end
Public Instance Methods
to_s()
click to toggle source
# File lib/feast_fast/feast.rb, line 19 def to_s @text + case @status when STATUS::GREAT ". (великий)" when STATUS::TWELVE ". (двунадесятый)" else "" end end