Class: DockerfileAst::Node::Comment
- Inherits:
-
NamedNode
- Object
- Treetop::Runtime::SyntaxNode
- NamedNode
- DockerfileAst::Node::Comment
show all
- Defined in:
- lib/dockerfile_ast/nodes/named_nodes.rb
Instance Method Summary
collapse
Methods inherited from NamedNode
#elements_to_s, #to_array
Instance Method Details
#title ⇒ Object
30
|
# File 'lib/dockerfile_ast/nodes/named_nodes.rb', line 30
def title; :comment end
|
#to_s ⇒ Object
32
33
34
|
# File 'lib/dockerfile_ast/nodes/named_nodes.rb', line 32
def to_s
"# #{elements[0].to_s}"
end
|