Method: Userlist::Config#method_missing
- Defined in:
- lib/userlist/config.rb
#method_missing(name, *args, &block) ⇒ Object (protected)
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/userlist/config.rb', line 78 def method_missing(name, *args, &block) if respond_to_missing?(name) name = name.to_s method = name =~ /=$/ ? :[]= : :[] name = name.sub(/=$/, '').to_sym send(method, name, *args, &block) else super end end |