class Piggly::Parser::Nodes::Sql

Public Instance Methods

sql?() click to toggle source
# File lib/piggly/parser/nodes.rb, line 256
def sql?
  true
end
style() click to toggle source
# File lib/piggly/parser/nodes.rb, line 254
def style; "tQ"; end
tag(prefix = nil, id = nil) click to toggle source
# File lib/piggly/parser/nodes.rb, line 260
def tag(prefix = nil, id = nil)
  unless defined? @tag_id
    if named?(:cond) and parent.for?
      # This node is the conditional in a FOR loop
      Tags::UnconditionalLoopTag.new(prefix, id)
    else
      Tags::EvaluationTag.new(prefix, id)
    end.tap{|tag| @tag_id = tag.id }
  end
end