Module: HashMap

Defined in:
lib/hash_map.rb,
lib/hash_map/dsl.rb,
lib/hash_map/base.rb,
lib/hash_map/mapper.rb,
lib/hash_map/plugins.rb,
lib/hash_map/version.rb,
lib/hash_map/matchers.rb,
lib/hash_map/json_adapter.rb

Defined Under Namespace

Modules: Matchers, ToDSL Classes: Base, DSL, JSONAdapter, Mapper

Constant Summary collapse

BlankToNil =
lambda do |v|
  Fusu.blank?(v) ? nil : v
end
StringToBoolean =
lambda do |v|
  return false if v == 'false'
  return true if v == 'true'
  v
end
UnderscoreKeys =
lambda do |output|
  Fusu::Hash.deep_transform_keys(output){ |k| Fusu::String.underscore(k).to_sym }
end
VERSION =
"0.6.0"

Class Method Summary collapse

Class Method Details

.rootObject



4
5
6
# File 'lib/hash_map.rb', line 4

def self.root
  File.expand_path '../..', __FILE__
end