Method: Lev::Paramifier#as_hash
- Defined in:
- lib/lev/handler.rb
#as_hash(*keys) ⇒ Object
11 12 13 14 |
# File 'lib/lev/handler.rb', line 11 def as_hash(*keys) keys = [keys].flatten.compact Hash[keys.collect { |key| [key, self.send(key)] }] end |