Class: Teepee::ParserNode

Inherits:
Object
  • Object
show all
Defined in:
lib/teepee/parser-node.rb

Direct Known Subclasses

CommandParser, ParagraphParser, Parser, Token

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



40
41
42
# File 'lib/teepee/parser-node.rb', line 40

def to_html
  "" # You probably want to override this.
end

#use_scope(scope) ⇒ Object



44
45
46
# File 'lib/teepee/parser-node.rb', line 44

def use_scope scope
  self # Some nodes will need to care about lexical scope.
end