class Nydp::Literal
Attributes
expression[R]
Public Class Methods
build(expression, bindings, ns)
click to toggle source
# File lib/nydp/literal.rb, line 10 def self.build expression, bindings, ns new expression end
new(expression)
click to toggle source
# File lib/nydp/literal.rb, line 6 def initialize expression @expression = expression end
Public Instance Methods
<(other)
click to toggle source
# File lib/nydp/literal.rb, line 27 def < other other > expression end
==(other)
click to toggle source
# File lib/nydp/literal.rb, line 31 def == other other.is_a?(Literal) && (self.expression == other.expression) end
>(other)
click to toggle source
# File lib/nydp/literal.rb, line 23 def > other other < expression end
compile_to_ruby(indent, srcs, opts=nil)
click to toggle source
# File lib/nydp/literal.rb, line 14 def compile_to_ruby indent, srcs, opts=nil "#{indent}#{expression.compile_to_ruby "", srcs}" end
inspect()
click to toggle source
# File lib/nydp/literal.rb, line 19 def inspect ; @expression.inspect ; end
nydp_type()
click to toggle source
# File lib/nydp/literal.rb, line 18 def nydp_type ; :literal ; end
to_ruby()
click to toggle source
# File lib/nydp/literal.rb, line 21 def to_ruby ; n2r @expression ; end
to_s()
click to toggle source
# File lib/nydp/literal.rb, line 20 def to_s ; @expression.to_s ; end