class Lev::Paramifier

Public Class Methods

boolean() click to toggle source

Hack to provide ActiveAttr's Boolean type concisely

# File lib/lev/handler.rb, line 9
def self.boolean; ActiveAttr::Typecasting::Boolean; end

Public Instance Methods

as_hash(*keys) click to toggle source
# File lib/lev/handler.rb, line 11
def as_hash(*keys)
  keys = [keys].flatten.compact
  Hash[keys.collect { |key| [key, self.send(key)] }]
end