Module: Hashme

Extended by:
ActiveSupport::Concern
Includes:
Validations
Defined in:
lib/hashme.rb,
lib/hashme/version.rb,
lib/hashme/property.rb,
lib/hashme/attributes.rb,
lib/hashme/properties.rb,
lib/hashme/validations.rb,
lib/hashme/casted_array.rb,
lib/hashme/property_casting.rb,
lib/hashme/validations/casted_attribute_validator.rb

Defined Under Namespace

Modules: Attributes, ClassMethods, Properties, PropertyCasting, Validations Classes: CastedArray, Property

Constant Summary collapse

VERSION =
"0.3.0"
Boolean =

Alias TrueClass as Boolean, so that it can be used as property types

TrueClass

Instance Method Summary collapse

Instance Method Details

#initialize(attrs = {}) ⇒ Object



34
35
36
37
38
# File 'lib/hashme.rb', line 34

def initialize(attrs = {})
  # Use the `Properties` module's methods
  set_defaults
  set_attributes(attrs)
end