Class: ROXMLDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/roundtrip_xml/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operation, key, obj_val, template_val, matcher = nil) ⇒ ROXMLDiff

Returns a new instance of ROXMLDiff.



187
188
189
190
191
192
193
# File 'lib/roundtrip_xml/extractor.rb', line 187

def initialize(operation, key, obj_val, template_val, matcher = nil)
  @operation = operation
  @key = key.to_sym
  @obj_val = obj_val
  @template_val = template_val
  @matcher = matcher
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



186
187
188
# File 'lib/roundtrip_xml/extractor.rb', line 186

def key
  @key
end

#matcherObject (readonly)

Returns the value of attribute matcher.



186
187
188
# File 'lib/roundtrip_xml/extractor.rb', line 186

def matcher
  @matcher
end

#obj_valObject (readonly)

Returns the value of attribute obj_val.



186
187
188
# File 'lib/roundtrip_xml/extractor.rb', line 186

def obj_val
  @obj_val
end

#operationObject (readonly)

Returns the value of attribute operation.



186
187
188
# File 'lib/roundtrip_xml/extractor.rb', line 186

def operation
  @operation
end

#template_valObject (readonly)

Returns the value of attribute template_val.



186
187
188
# File 'lib/roundtrip_xml/extractor.rb', line 186

def template_val
  @template_val
end