instance method klass

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

klass()

Look up the generator class. Require its class file, find the class in ObjectSpace, tag it with this spec, and return.

Source
# File railties/lib/rails_generator/spec.rb, line 15
      def klass
        unless @klass
          require class_file
          @klass = lookup_class
          @klass.spec = self
        end
        @klass
      end

Defined in railties/lib/rails_generator/spec.rb line 15 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Generator::Spec

Type at least 2 characters to search.

↑↓ navigate · open · esc close