Class: StringInquirer

Inherits:
String
  • Object
show all
Defined in:
lib/klipp.rb

Instance Method Summary collapse

Methods inherited from String

#matches_false?, #matches_true?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *arguments) ⇒ Object



187
188
189
190
191
192
193
# File 'lib/klipp.rb', line 187

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