Class: RLSM::RE::Prim

Inherits:
SyntaxNode show all
Defined in:
lib/rlsm/regexp_parser.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from SyntaxNode

#content

Instance Method Summary collapse

Methods inherited from SyntaxNode

#<=>, [], #initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from RLSM::RE::SyntaxNode

Instance Method Details

#firstObject



331
332
333
# File 'lib/rlsm/regexp_parser.rb', line 331

def first
  [ @content ]
end

#followObject



339
340
341
# File 'lib/rlsm/regexp_parser.rb', line 339

def follow
  []
end

#lastObject



335
336
337
# File 'lib/rlsm/regexp_parser.rb', line 335

def last
  [ @content ]
end

#null?Boolean

Returns:

  • (Boolean)


327
328
329
# File 'lib/rlsm/regexp_parser.rb', line 327

def null?
  false
end