Method: Attributes#method_missing
- Defined in:
- lib/filebase/attributes.rb
#method_missing(name, *args) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/filebase/attributes.rb', line 16 def method_missing(name,*args) name = name.to_s case args.length when 0 then get( name ) when 1 if name[-1,1] == '=' set( name[0..-2], args[0] ) else super end else super end end |