Module: Toady::Magic

Included in:
Toady, Toady
Defined in:
lib/toady.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_sym, *arguments, &block) ⇒ Object



5
6
7
# File 'lib/toady.rb', line 5

def method_missing(method_sym, *arguments, &block)
  [method_sym.to_sym] + arguments
end

Instance Method Details

#respond_to?(method_sym, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/toady.rb', line 9

def respond_to?(method_sym, include_private = false)
  true
end