Class: Moxml::Adapter::CustomizedRexml::EntityReference
- Inherits:
-
Object
- Object
- Moxml::Adapter::CustomizedRexml::EntityReference
- Defined in:
- lib/moxml/adapter/customized_rexml/entity_reference.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name) ⇒ EntityReference
constructor
A new instance of EntityReference.
Constructor Details
#initialize(name) ⇒ EntityReference
Returns a new instance of EntityReference.
9 10 11 |
# File 'lib/moxml/adapter/customized_rexml/entity_reference.rb', line 9 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/moxml/adapter/customized_rexml/entity_reference.rb', line 7 def name @name end |
Instance Method Details
#==(other) ⇒ Object
13 14 15 |
# File 'lib/moxml/adapter/customized_rexml/entity_reference.rb', line 13 def ==(other) other.is_a?(self.class) && @name == other.name end |