Class: TablizedOutput::V
Instance Attribute Summary collapse
-
#s ⇒ Object
readonly
Returns the value of attribute s.
-
#v ⇒ Object
readonly
Returns the value of attribute v.
Instance Method Summary collapse
-
#initialize(v, s = nil) ⇒ V
constructor
A new instance of V.
- #inspect ⇒ Object
- #length ⇒ Object
- #to_s ⇒ Object
Methods inherited from B
Constructor Details
#initialize(v, s = nil) ⇒ V
Returns a new instance of V.
103 |
# File 'lib/pve/helper.rb', line 103 def initialize( v, s=nil) @v, @s = v, s || "#{v}" end |
Instance Attribute Details
#s ⇒ Object (readonly)
Returns the value of attribute s.
102 103 104 |
# File 'lib/pve/helper.rb', line 102 def s @s end |
#v ⇒ Object (readonly)
Returns the value of attribute v.
102 103 104 |
# File 'lib/pve/helper.rb', line 102 def v @v end |
Instance Method Details
#inspect ⇒ Object
106 |
# File 'lib/pve/helper.rb', line 106 def inspect() "#<TO:V #{@v.inspect} #{@s.inspect}>" end |
#length ⇒ Object
105 |
# File 'lib/pve/helper.rb', line 105 def length() @s.length end |
#to_s ⇒ Object
104 |
# File 'lib/pve/helper.rb', line 104 def to_s() @s end |