class method self.describe

Ruby on Rails 3.1.12

Since v3.0.20 Last seen in v4.1.16

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16

Signature

self.describe(text)

No documentation comment.

Parameters

text req
Source
# File activesupport/lib/active_support/testing/declarative.rb, line 9
            def self.describe(text)
              class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
                def self.name
                  "#{text}"
                end
              RUBY_EVAL
            end

Defined in activesupport/lib/active_support/testing/declarative.rb line 9 · 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