Class: Buttonize::StyleSet::Style
- Inherits:
-
Hash
- Object
- Hash
- Buttonize::StyleSet::Style
- Defined in:
- lib/buttonize/style_set.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *params) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/buttonize/style_set.rb', line 4 def method_missing(meth,*params) if meth.to_s =~ /=$/ self[meth.to_s.sub(/=$/,"").to_sym] = params.first elsif self.has_key?(meth) self[meth] else super(meth,*params) end end |