Class: Lev::Paramifier

Inherits:
Object
  • Object
show all
Defined in:
lib/lev/handler.rb

Instance Method Summary collapse

Instance Method Details

#as_hash(keys) ⇒ Object



5
6
7
8
# File 'lib/lev/handler.rb', line 5

def as_hash(keys)
  keys = [keys].flatten.compact
  Hash[keys.collect { |key| [key, self.send(key)] }]
end