Class: HealthSeven::SegmentLiteral

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

Instance Method Summary collapse

Instance Method Details

#fieldsObject



13
14
15
# File 'lib/health_seven/nodes.rb', line 13

def fields
  @fields ||= self.text_value.gsub(name + '|', '')
end

#nameObject



9
10
11
# File 'lib/health_seven/nodes.rb', line 9

def name
  @name ||= self.text_value.split('|')[0]
end