Class: StringInquirer

Inherits:
String show all
Defined in:
lib/extensions.rb

Method Summary

Methods inherited from String

#to_param, #to_query

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *arguments) ⇒ Object (private)



119
120
121
122
123
124
125
# File 'lib/extensions.rb', line 119

def method_missing(method_name, *arguments)
  if method_name.end_with?("?")
    self == method_name[0..-2]
  else
    super
  end
end