Module: Duxml::NewAttr

Included in:
NewAttrClass
Defined in:
lib/duxml/meta/history/new_attr.rb,
lib/duxml/meta/history/new_attr.rb

Instance Method Summary collapse

Instance Method Details

#descriptionString

Returns self description.

Returns:

  • (String)

    self description



29
30
31
# File 'lib/duxml/meta/history/new_attr.rb', line 29

def description
  "#{super} #{subject.description} given new attribute '#{attr_name}' with value '#{value}'."
end

#valueString

Returns value of the new attribute.

Returns:

  • (String)

    value of the new attribute



24
25
26
# File 'lib/duxml/meta/history/new_attr.rb', line 24

def value
  subject[attr_name]
end