class method self.extended

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

self.extended(klass)

No documentation comment.

Parameters

klass req
Source
# File activesupport/lib/active_support/testing/declarative.rb, line 5
      def self.extended(klass)
        klass.class_eval do

          unless method_defined?(:describe)
            def self.describe(text)
              class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
                def self.name
                  "#{text}"
                end
              RUBY_EVAL
            end
          end

        end
      end

Defined in activesupport/lib/active_support/testing/declarative.rb line 5 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Testing::Declarative

Type at least 2 characters to search.

↑↓ navigate · open · esc close