Class: HAProxy::Treetop::ConfigLine

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Includes:
OptionalValueElement, StrippedTextContent
Defined in:
lib/haproxy/treetop/nodes.rb

Overview

Helper class for config nodes

Instance Method Summary collapse

Methods included from OptionalValueElement

#value

Methods included from StrippedTextContent

#content

Instance Method Details

#attributeObject



117
118
119
# File 'lib/haproxy/treetop/nodes.rb', line 117

def attribute
  value.content
end

#keyObject



113
114
115
# File 'lib/haproxy/treetop/nodes.rb', line 113

def key
  keyword.content
end