lib/genspec/generator_example_group.rb
# Traverses up the context tree to find the topmost description, which represents
# the controller to be tested or the string/symbol representing it.
#
# If name is specified, it will be used instead and subsequent calls to this method
# will return the specified name.
Traverses up the context tree to find the topmost description, which represents
the controller to be tested or the string/symbol representing it.

If name is specified, it will be used instead and subsequent calls to this method
will return the specified name.
Traverses up the context tree to find the topmost description which represents the controller to be tested or the string / symbol representing it . If name is specified it will be used instead and subsequent calls to this method will return the specified name .
def generator(name = nil)
        metadata[:generator_name] = name.to_s if name
        return metadata[:generator_name] if metadata[:generator_name]
        if genspec_subclass?
          superclass.generator
        else
          described_class || description
        end
      end
def generator ( name = nil ) metadata [ :generator_name ] = name . to_s if name return metadata [ :generator_name ] if metadata [ :generator_name ] if genspec_subclass? superclass . generator else described_class || description end end
Traverses up the context tree to find the topmost description, which represents
the controller to be tested or the string/symbol representing it.
Traverses up the context tree to find the topmost description which represents the controller to be tested or the string / symbol representing it .
name