class Zapata::Primitive::Basic
Public Instance Methods
node()
click to toggle source
# File lib/zapata/primitive/basic.rb, line 10 def node body = @code type = @code.type OpenStruct.new(type: type, body: body) end
to_a()
click to toggle source
# File lib/zapata/primitive/basic.rb, line 6 def to_a [value] end
to_raw()
click to toggle source
# File lib/zapata/primitive/basic.rb, line 16 def to_raw Raw.new(node.body.type, node.body.to_a.last) end