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.



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

def initialize( v, s=nil) @v, @s = v, s || "#{v}" end

Instance Attribute Details

#sObject (readonly)

Returns the value of attribute s.



114
115
116
# File 'lib/pve/helper.rb', line 114

def s
  @s
end

#vObject (readonly)

Returns the value of attribute v.



114
115
116
# File 'lib/pve/helper.rb', line 114

def v
  @v
end

Instance Method Details

#inspectObject



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

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

#lengthObject



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

def length() @s.length end

#to_sObject



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

def to_s() @s.to_s end