Class: Strop::Arg
- Inherits:
-
Data
- Object
- Data
- Strop::Arg
- Defined in:
- lib/strop.rb,
lib/strop.rb
Overview
for debugging only, TODO remove later probably
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
-
#value ⇒ Object
(also: #to_s, #to_str)
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #encode_with(coder) ⇒ Object
-
#initialize(value:) ⇒ Arg
constructor
A new instance of Arg.
Constructor Details
#initialize(value:) ⇒ Arg
Returns a new instance of Arg.
71 |
# File 'lib/strop.rb', line 71 def initialize(value:) = super(value:, arg: value) |
Instance Attribute Details
#arg ⇒ Object (readonly)
Returns the value of attribute arg
70 71 72 |
# File 'lib/strop.rb', line 70 def arg @arg end |
#value ⇒ Object (readonly) Also known as: to_s, to_str
Returns the value of attribute value
70 71 72 |
# File 'lib/strop.rb', line 70 def value @value end |
Instance Method Details
#encode_with(coder) ⇒ Object
120 |
# File 'lib/strop.rb', line 120 def encode_with(coder) = (coder.scalar = self.value; coder.tag = nil) |