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

AttributeHash, UNSET_VALUE, VALID_CAMEL_STYLES, VERSION

Instance Attribute Summary

Attributes inherited from AttributeStruct

#_arg_state, #_camel_keys, #_camel_style

Instance Method Summary collapse

Methods inherited from AttributeStruct

#[], #__hashish, #_array, #_build, #_camel_keys_action, #_camel_keys_set, #_clone, #_data, #_deep_copy, #_delete, #_do_dup, #_dump, #_dump_unpacker, #_kernelify, #_keys, #_klass_new, #_load, #_merge, #_merge!, #_objectified_constant_lookup, #_objectify, #_parent, #_process_key, #_root, #_set, #_set_state, #_state, build, #hash, hashish, irb_compat!, #is_a?, #kernelified?, #klass!, load_the_camels, #method_missing, #nil?, #objectified?, #present?, #respond_to?, validate_camel_style

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



15
16
17
18
# File 'lib/attribute_struct/augmented.rb', line 15

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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AttributeStruct

Instance Method Details

#_klassClass

Returns:

  • (Class)


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

def _klass
  ::AttributeStruct::Augmented
end