Class: Week::Day
- Inherits:
-
Object
- Object
- Week::Day
- Defined in:
- lib/dude_weak.rb
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Day
constructor
A new instance of Day.
- #method_missing(method, *args, &block) ⇒ Object
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 |