Class: AttributeStruct::Augmented

Inherits:
AttributeStruct show all
Includes:
Kernel
Defined in:
lib/attribute_struct/augmented.rb

Overview

AttributeStruct expanded class that include the Kernel module and automatically objectifies the instance

Constant Summary

Constants inherited from AttributeStruct

VERSION

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ self

Create a new Augmented AttributeStruct instance. Passes arguments and block directly to parent for initialization. Automatically objectifies the instance



12
13
14
15
# File 'lib/attribute_struct/augmented.rb', line 12

def initialize(*args, &block)
  super(*args, &block)
  @_objectified = true
end

Instance Method Details

#_klassClass

Returns:

  • (Class)


18
19
20
# File 'lib/attribute_struct/augmented.rb', line 18

def _klass
  ::AttributeStruct::Augmented
end