Class: PositionalGenerator::Builder::Computed

Inherits:
Object
  • Object
show all
Defined in:
lib/helpers/positional_generator.rb

Instance Method Summary collapse

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