Class: TablizedOutput::V

Inherits:
B
  • Object
show all
Defined in:
lib/pve/helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sObject (readonly)

Returns the value of attribute s.



102
103
104
# File 'lib/pve/helper.rb', line 102

def s
  @s
end

#vObject (readonly)

Returns the value of attribute v.



102
103
104
# File 'lib/pve/helper.rb', line 102

def v
  @v
end

Instance Method Details

#inspectObject



106
# File 'lib/pve/helper.rb', line 106

def inspect() "#<TO:V #{@v.inspect} #{@s.inspect}>" end

#lengthObject



105
# File 'lib/pve/helper.rb', line 105

def length() @s.length end

#to_sObject



104
# File 'lib/pve/helper.rb', line 104

def to_s() @s end