Class: A9n::StringInquirer

Inherits:
String
  • Object
show all
Defined in:
lib/a9n/ext/string_inquirer.rb

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



10
11
12
13
14
15
16
# File 'lib/a9n/ext/string_inquirer.rb', line 10

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