class Piggly::Parser::Nodes::TKeyword

Public Instance Methods

keyword?() click to toggle source
# File lib/piggly/parser/nodes.rb, line 305
def keyword?
  true
end
style() click to toggle source
# File lib/piggly/parser/nodes.rb, line 303
def style; "tK"; end
tag(prefix = nil, id = nil) click to toggle source
# File lib/piggly/parser/nodes.rb, line 309
def tag(prefix = nil, id = nil)
  unless defined? @tag_id
    if named?(:cond) and parent.loop?
      Tags::UnconditionalLoopTag.new(prefix, id)
    else
      Tags::EvaluationTag.new(prefix, id)
    end
  end.tap{|tag| @tag_id = tag.id }
end