Class: Atomy::MessageStructure::DefaultArgument
- Defined in:
- lib/atomy/message_structure.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(node, default) ⇒ DefaultArgument
constructor
A new instance of DefaultArgument.
Constructor Details
#initialize(node, default) ⇒ DefaultArgument
Returns a new instance of DefaultArgument.
6 7 8 9 |
# File 'lib/atomy/message_structure.rb', line 6 def initialize(node, default) @node = node @default = default end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
4 5 6 |
# File 'lib/atomy/message_structure.rb', line 4 def default @default end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
4 5 6 |
# File 'lib/atomy/message_structure.rb', line 4 def node @node end |
Instance Method Details
#==(other) ⇒ Object
11 12 13 14 15 |
# File 'lib/atomy/message_structure.rb', line 11 def ==(other) other.is_a?(self.class) && \ other.node == @node && \ other.default == @default end |