Module: Ditto

Defined in:
lib/ditto/dsl.rb,
lib/ditto.rb,
lib/ditto/error.rb,
lib/ditto/entity.rb,
lib/ditto/runner.rb,
lib/ditto/options.rb,
lib/ditto/version.rb

Overview

Define the DSL for Ditto Arguably the validation logic here should be back in entity.rb

Defined Under Namespace

Modules: DSL Classes: Entity, Error, Options, Runner

Constant Summary collapse

VERSION =
'1.0'

Class Method Summary collapse

Class Method Details

.symbolize_keys(h) ⇒ Object



8
9
10
# File 'lib/ditto.rb', line 8

def self.symbolize_keys h
  h.inject({}) { |opts,(k,v)| opts[(k.to_sym rescue k) || k] = v; opts }
end