class TestML::Object
Attributes
value[RW]
Public Class Methods
new(value)
click to toggle source
# File lib/testml/runtime.rb, line 380 def initialize(value) @value = value end
Public Instance Methods
bool()
click to toggle source
# File lib/testml/runtime.rb, line 396 def bool fail "Cast from #{type} to Bool is not supported" end
list()
click to toggle source
# File lib/testml/runtime.rb, line 399 def list fail "Cast from #{type} to List is not supported" end
none()
click to toggle source
# File lib/testml/runtime.rb, line 402 def none TestML::Constant::None end
num()
click to toggle source
# File lib/testml/runtime.rb, line 393 def num fail "Cast from #{type} to Num is not supported" end
str()
click to toggle source
# File lib/testml/runtime.rb, line 390 def str fail "Cast from #{type} to Str is not supported" end
type()
click to toggle source
# File lib/testml/runtime.rb, line 384 def type type = self.class.to_s type.sub! /^TestML::/, '' or fail "Can't find type of '#{type}'" return type end