Class: Flexr::Regexp::AST::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/flexr/regexp/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loc = nil) ⇒ Node

Returns a new instance of Node.



42
43
44
# File 'lib/flexr/regexp/ast.rb', line 42

def initialize(loc = nil)
  @loc = loc
end

Instance Attribute Details

#locObject (readonly)

Returns the value of attribute loc.



40
41
42
# File 'lib/flexr/regexp/ast.rb', line 40

def loc
  @loc
end