Class: Huml::Top

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/huml.rb

Instance Method Summary collapse

Instance Method Details

#tokenizeObject



24
25
26
27
# File 'lib/huml.rb', line 24

def tokenize
  [:multi].push(doctype.empty? ? [:multi] : doctype.tokenize)
          .concat( html.empty? ? [[:multi]] : html.tokenize )
end