Class: WebIDL::ParseTree::StringifierAttributeOrOperation

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/webidl/parse_tree/stringifier_attribute_or_operation.rb

Instance Method Summary collapse

Instance Method Details

#build(parent) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/webidl/parse_tree/stringifier_attribute_or_operation.rb', line 5

def build(parent)
  unless a_or_op.empty? || a_or_op.text_value == ";"
    elem = a_or_op.build(parent)
    elem.stringifier = true

    elem
  end
end