Class: Strop::Arg

Inherits:
Data
  • Object
show all
Defined in:
lib/strop.rb,
lib/strop.rb

Overview

for debugging only, TODO remove later probably

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argObject (readonly)

Returns the value of attribute arg

Returns:

  • (Object)

    the current value of arg



70
71
72
# File 'lib/strop.rb', line 70

def arg
  @arg
end

#valueObject (readonly) Also known as: to_s, to_str

Returns the value of attribute value

Returns:

  • (Object)

    the current value of 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)