Class: Filament::BlockObject

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

Instance Method Summary collapse

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