Class: Utils::UndefinedParam
- Inherits:
-
Object
- Object
- Utils::UndefinedParam
- Defined in:
- lib/roundtrip_xml/utils.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#original ⇒ Object
readonly
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(name, original = nil) ⇒ UndefinedParam
constructor
A new instance of UndefinedParam.
- #to_s ⇒ Object
Constructor Details
#initialize(name, original = nil) ⇒ UndefinedParam
Returns a new instance of UndefinedParam.
13 14 15 16 |
# File 'lib/roundtrip_xml/utils.rb', line 13 def initialize(name, original = nil) @name = name @original = original end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
12 13 14 |
# File 'lib/roundtrip_xml/utils.rb', line 12 def name @name end |
#original ⇒ Object (readonly)
Returns the value of attribute original.
12 13 14 |
# File 'lib/roundtrip_xml/utils.rb', line 12 def original @original end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/roundtrip_xml/utils.rb', line 18 def to_s "#{Utils::UNDEFINED_PARAM}:#{@name}" end |