Sha256: 8049150694a09984139a99d4f441e0383e6198742396197ae33ca97307f9cf89

Contents?: true

Size: 236 Bytes

Versions: 20

Compression:

Stored size: 236 Bytes

Contents

module ActiveSupport
  class StringInquirer < String
    def method_missing(method_name, *arguments)
      if method_name.to_s.ends_with?("?")
        self == method_name.to_s[0..-2]
      else
        super
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 5 rubygems

Version Path
3mix-castronaut-0.5.0.2 vendor/activesupport/lib/active_support/string_inquirer.rb
masover-castronaut-0.4.4.4 vendor/activesupport/lib/active_support/string_inquirer.rb
masover-castronaut-0.4.4.5 vendor/activesupport/lib/active_support/string_inquirer.rb
masover-castronaut-0.5.0.1 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.4.1 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.4.2 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.4.3 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.4.4 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.4.5 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.4.6 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.5.0 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.5.1 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.5.2 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.5.3 vendor/activesupport/lib/active_support/string_inquirer.rb
relevance-castronaut-0.5.4 vendor/activesupport/lib/active_support/string_inquirer.rb
radiant-0.7.2 vendor/rails/activesupport/lib/active_support/string_inquirer.rb
activesupport-2.1.2 lib/active_support/string_inquirer.rb
activesupport-2.1.1 lib/active_support/string_inquirer.rb
radiant-0.7.0 vendor/rails/activesupport/lib/active_support/string_inquirer.rb
radiant-0.7.1 vendor/rails/activesupport/lib/active_support/string_inquirer.rb