class method
self.extended
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.2.22.5Signature
self.extended(klass)
No documentation comment.
Parameters
-
klassreq
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