Module: ShallowAttributes

Includes:
InstanceMethods
Defined in:
lib/shallow_attributes.rb,
lib/shallow_attributes/type.rb,
lib/shallow_attributes/version.rb,
lib/shallow_attributes/type/time.rb,
lib/shallow_attributes/type/array.rb,
lib/shallow_attributes/type/float.rb,
lib/shallow_attributes/type/string.rb,
lib/shallow_attributes/type/boolean.rb,
lib/shallow_attributes/type/integer.rb,
lib/shallow_attributes/class_methods.rb,
lib/shallow_attributes/type/date_time.rb,
lib/shallow_attributes/instance_methods.rb

Overview

Main module

Since:

  • 0.1.0

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Type

Constant Summary collapse

VERSION =

Defines the full version

Since:

  • 0.1.0

"0.9.2".freeze

Constants included from InstanceMethods

InstanceMethods::TO_H_PROC

Class Method Summary collapse

Methods included from InstanceMethods

#==, #attributes, #attributes=, #coerce, #initialize, #inspect, #reset_attribute

Class Method Details

.included(base) ⇒ Class

Including ShallowAttributes class methods to specific class

Since:

  • 0.1.0


21
22
23
# File 'lib/shallow_attributes.rb', line 21

def self.included(base)
  base.extend(ClassMethods)
end