Class: Nis::Unit::Code
- Inherits:
-
Object
- Object
- Nis::Unit::Code
- Defined in:
- lib/nis/unit/code.rb
Instance Attribute Summary collapse
-
#message ⇒ String
The current value of message.
-
#value ⇒ String
The current value of value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value) ⇒ Code
constructor
A new instance of Code.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Code
Returns a new instance of Code.
7 8 9 |
# File 'lib/nis/unit/code.rb', line 7 def initialize(value) @value = value end |
Instance Attribute Details
#message ⇒ String
Returns the current value of message.
4 5 6 |
# File 'lib/nis/unit/code.rb', line 4 def end |
#value ⇒ String
Returns the current value of value.
4 5 6 |
# File 'lib/nis/unit/code.rb', line 4 def value @value end |
Instance Method Details
#==(other) ⇒ Object
19 20 21 |
# File 'lib/nis/unit/code.rb', line 19 def ==(other) @value == other.value end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/nis/unit/code.rb', line 15 def to_s end |