lib/genspec/generator_example_group.rb
def generator_descriptor
      {
        :described => self.class.generator,
        :args => self.class.generator_args,
        :input => self.class.generator_input,
        :output => self.class.generator_output,
        :init_blocks => generator_init_blocks,
        :generator_options => self.class.generator_options
      }
    end
# A hash containing the following:
#
#   :described   - the generator to be tested, or the string/symbol representing it
#   :args        - any arguments to be used when invoking the generator
#   :input       - a string to be used as an input stream, or nil
#   :init_blocks - an array of blocks to be invoked prior to running the generator
#   :generator_options - a hash of options to be passed into the generator
#
# This hash represents the +subject+ of the spec and this is the object that will
# ultimately be passed into the GenSpec matchers.
#


This hash represents the +subject+ of the spec and this is the object that will
ultimately be passed into the GenSpec matchers.
This hash represents the + subject + of the spec and this is the object that will ultimately be passed into the GenSpec matchers .
def generator_descriptor
      {
        :described => self.class.generator,
        :args => self.class.generator_args,
        :input => self.class.generator_input,
        :output => self.class.generator_output,
        :init_blocks => generator_init_blocks,
        :generator_options => self.class.generator_options
      }
    end
def generator_descriptor { :described => self . class . generator , :args => self . class . generator_args , :input => self . class . generator_input , :output => self . class . generator_output , :init_blocks => generator_init_blocks , :generator_options => self . class . generator_options } end
A hash containing the following:
:described   - the generator to be tested, or the string/symbol representing it
:args        - any arguments to be used when invoking the generator
:input       - a string to be used as an input stream, or nil
:init_blocks - an array of blocks to be invoked prior to running the generator
:generator_options - a hash of options to be passed into the generator
A hash containing the following : : described - the generator to be tested or the string / symbol representing it : args - any arguments to be used when invoking the generator : input - a string to be used as an input stream or nil : init_blocks - an array of blocks to be invoked prior to running the generator : generator_options - a hash of options to be passed into the generator