class Tumblargh::Node::Tag
Public Instance Methods
name()
click to toggle source
# File lib/tumblargh/node/tag.rb, line 22 def name elements[1].text_value end
to_tree()
click to toggle source
# File lib/tumblargh/node/tag.rb, line 26 def to_tree return [type, name] end
type()
click to toggle source
Calls superclass method
Tumblargh::Node::Base#type
# File lib/tumblargh/node/tag.rb, line 5 def type return @type if defined?(@type) n = name.split(':') if n.size == 2 @type = "#{n.first.camelize.to_sym}Tag" if @type == 'BlockTag' raise ParserError, "There's an unclosed block somewhere near `#{name}`" end @type else super end end