Class: RomFactory::Attributes::Callable
- Inherits:
-
Object
- Object
- RomFactory::Attributes::Callable
- Defined in:
- lib/rom_factory/attributes/callable.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(block) ⇒ Callable
constructor
A new instance of Callable.
Constructor Details
#initialize(block) ⇒ Callable
Returns a new instance of Callable.
4 5 6 |
# File 'lib/rom_factory/attributes/callable.rb', line 4 def initialize(block) @block = block end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/rom_factory/attributes/callable.rb', line 8 def call @block.call end |