Class: Week::Day

Inherits:
Object
  • Object
show all
Defined in:
lib/dude_weak.rb

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Day

Returns a new instance of Day.



58
59
60
# File 'lib/dude_weak.rb', line 58

def initialize(attrs)
  @source = OpenStruct.new(attrs)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object



62
63
64
# File 'lib/dude_weak.rb', line 62

def method_missing(method, *args, &block)
  @source.send(method, *args, &block)
end