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.
115 |
# File 'lib/pve/helper.rb', line 115 def initialize( v, s=nil) @v, @s = v, s || "#{v}" end |
Instance Attribute Details
#s ⇒ Object (readonly)
Returns the value of attribute s.
114 115 116 |
# File 'lib/pve/helper.rb', line 114 def s @s end |
#v ⇒ Object (readonly)
Returns the value of attribute v.
114 115 116 |
# File 'lib/pve/helper.rb', line 114 def v @v end |
Instance Method Details
#inspect ⇒ Object
118 |
# File 'lib/pve/helper.rb', line 118 def inspect() "#<TO:V #{@v.inspect} #{@s.inspect}>" end |
#length ⇒ Object
117 |
# File 'lib/pve/helper.rb', line 117 def length() @s.length end |
#to_s ⇒ Object
116 |
# File 'lib/pve/helper.rb', line 116 def to_s() @s.to_s end |