Class: PositionalGenerator::Builder::Computed
- Inherits:
-
Object
- Object
- PositionalGenerator::Builder::Computed
- Defined in:
- lib/helpers/positional_generator.rb
Instance Method Summary collapse
- #generate(args) ⇒ Object
-
#initialize(block) ⇒ Computed
constructor
A new instance of Computed.
Constructor Details
#initialize(block) ⇒ Computed
Returns a new instance of Computed.
471 472 473 |
# File 'lib/helpers/positional_generator.rb', line 471 def initialize(block) @block = block end |
Instance Method Details
#generate(args) ⇒ Object
475 476 477 |
# File 'lib/helpers/positional_generator.rb', line 475 def generate(args) @block.call(*args) end |