lib/genspec/generator_example_group.rb
# Returns an array of all init blocks from the topmost context down to this
# one, in that order. These blocks will be executed sequentially prior to
# each run of the generator.
Returns an array of all init blocks from the topmost context down to this
one, in that order. These blocks will be executed sequentially prior to
each run of the generator.
Returns an array of all init blocks from the topmost context down to this one in that order . These blocks will be executed sequentially prior to each run of the generator .
def generator_init_blocks
        result = []
        result.concat superclass.generator_init_blocks if genspec_subclass?
        result << metadata[:generator_init_block] if metadata[:generator_init_block]
        result
      end
def generator_init_blocks result = [ ] result . concat superclass . generator_init_blocks if genspec_subclass? result << metadata [ :generator_init_block ] if metadata [ :generator_init_block ] result end
Returns an array of all init blocks from the topmost context down to this
one, in that order.
Returns an array of all init blocks from the topmost context down to this one in that order .