class AWS::Core::XmlGrammar::CustomizationContext

@private

Public Class Methods

new(element_name = nil) click to toggle source
# File lib/aws/core/xml_grammar.rb, line 70
def initialize(element_name = nil)
  original_store(:children, {})
  
  if element_name
    original_store(:name, element_name)
    recompute_accessors
  end
end

Public Instance Methods

[]=(name, value) click to toggle source
# File lib/aws/core/xml_grammar.rb, line 81
def []=(name, value)
  super
  if respond_to?("changed_#{name}")
    send("changed_#{name}", value)
  end
end
Also aliased as: original_store
changed_boolean(value) click to toggle source
# File lib/aws/core/xml_grammar.rb, line 88
def changed_boolean(value)
  recompute_accessors
end
changed_renamed(value) click to toggle source
# File lib/aws/core/xml_grammar.rb, line 92
def changed_renamed(value)
  recompute_accessors
end
deep_copy(hash = self) click to toggle source
# File lib/aws/core/xml_grammar.rb, line 96
def deep_copy(hash = self)
  fields = hash.inject({}) do |copy,(key,value)|
    if value.is_a?(CustomizationContext)
      value = value.deep_copy
    elsif value.is_a?(Hash)
      value = deep_copy(value)
    end
    copy[key] = value
    copy
  end
  hash.merge(fields)
end
original_store(name, value) click to toggle source
Alias for: []=