Class: Flexr::Regexp::AST::Node
- Inherits:
-
Object
- Object
- Flexr::Regexp::AST::Node
- Defined in:
- lib/flexr/regexp/ast.rb
Instance Attribute Summary collapse
-
#loc ⇒ Object
readonly
Returns the value of attribute loc.
Instance Method Summary collapse
-
#initialize(loc = nil) ⇒ Node
constructor
A new instance of Node.
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
#loc ⇒ Object (readonly)
Returns the value of attribute loc.
40 41 42 |
# File 'lib/flexr/regexp/ast.rb', line 40 def loc @loc end |