Module: SmokeMonster::CoverMethods
- Included in:
- Cover
- Defined in:
- lib/smoke_monster/cover.rb
Instance Method Summary collapse
- #initialize(subject) ⇒ Object
- #method_missing(meth, *args, &blk) ⇒ Object
- #the_original_subject ⇒ Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
9 10 11 12 13 |
# File 'lib/smoke_monster/cover.rb', line 9 def method_missing(meth, *args, &blk) @subject.send(meth, *args, &blk) rescue SmokeMonster::Cover.new Object.new end |