Module: Fontcustom::Utility::HashWithMethodAccess
- Defined in:
- lib/fontcustom/utility.rb
Overview
Options
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, arg = nil) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/fontcustom/utility.rb', line 48 def method_missing(method, arg = nil) if method[-1, 1] == "=" self[method[0...-1].to_sym] = arg else self[method.to_sym] end end |