class NScript::Value
Attributes
line[R]
value[R]
Public Class Methods
new(value, line=nil)
click to toggle source
# File lib/nscript/value.rb, line 7 def initialize(value, line=nil) @value, @line = value, line end
Public Instance Methods
==(other)
click to toggle source
# File lib/nscript/value.rb, line 28 def ==(other) @value == other end
[](index)
click to toggle source
# File lib/nscript/value.rb, line 32 def [](index) @value[index] end
children()
click to toggle source
# File lib/nscript/value.rb, line 48 def children [] end
compile(o={})
click to toggle source
# File lib/nscript/value.rb, line 20 def compile(o={}) to_s end
contains?()
click to toggle source
# File lib/nscript/value.rb, line 56 def contains? false end
eql?(other)
click to toggle source
# File lib/nscript/value.rb, line 36 def eql?(other) @value.eql?(other) end
hash()
click to toggle source
# File lib/nscript/value.rb, line 40 def hash @value.hash end
inspect()
click to toggle source
# File lib/nscript/value.rb, line 24 def inspect @value.inspect end
match(regex)
click to toggle source
# File lib/nscript/value.rb, line 44 def match(regex) @value.match(regex) end
statement_only?()
click to toggle source
# File lib/nscript/value.rb, line 52 def statement_only? false end
to_str()
click to toggle source
# File lib/nscript/value.rb, line 11 def to_str @value.to_s end
Also aliased as: to_s
to_sym()
click to toggle source
# File lib/nscript/value.rb, line 16 def to_sym to_str.to_sym end