Exception: YTools::Path::ParseError

Inherits:
Exception
  • Object
show all
Defined in:
lib/ytools/path/parser.rb

Overview

Yaml Path Spec:

yaml_path: child_selector (child_selector)* <-- '/' path_node is a root | path_node (child_selector)* ;

child_selector: '/' path_node | '//' path_node ;

path_node: PATH_PART index? | NUMBER index? ;

index: LBRACE NUMBER RBRACE ;

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, token) ⇒ ParseError



35
36
37
38
# File 'lib/ytools/path/parser.rb', line 35

def initialize(message, token)
  super(message)
  @token = token
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



33
34
35
# File 'lib/ytools/path/parser.rb', line 33

def token
  @token
end