Class: Filament::BlockObject
- Inherits:
-
Object
- Object
- Filament::BlockObject
- Defined in:
- lib/filament/block_object.rb
Instance Method Summary collapse
-
#initialize(&p) ⇒ BlockObject
constructor
A new instance of BlockObject.
- #method_missing(sym, *args, &p) ⇒ Object
Constructor Details
#initialize(&p) ⇒ BlockObject
Returns a new instance of BlockObject.
3 4 5 |
# File 'lib/filament/block_object.rb', line 3 def initialize(&p) @proc = p end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &p) ⇒ Object
7 8 9 |
# File 'lib/filament/block_object.rb', line 7 def method_missing(sym, *args, &p) @proc.call(sym, args, p) end |