Method: ACTV::Base#method_missing
- Defined in:
- lib/actv/base.rb
#method_missing(meth, *args, &block) ⇒ Object
106 107 108 109 110 111 112 113 114 |
# File 'lib/actv/base.rb', line 106 def method_missing(meth, *args, &block) if @attrs && @attrs.has_key?(meth) @attrs[meth] elsif meth.to_s.include?('=') and !args.empty? @attrs[meth[0..-2].to_sym] = args.first else super end end |