Module: RLSM

Defined in:
lib/rlsm.rb,
lib/rlsm/dfa.rb,
lib/rlsm/helper.rb,
lib/rlsm/monoid.rb,
lib/rlsm/regexp.rb,
lib/rlsm/regexp_parser.rb

Defined Under Namespace

Modules: RE Classes: DFA, Error, Monoid, RegExp

Constant Summary collapse

VERSION =
"1.8.1"

Class Method Summary collapse

Class Method Details

.lib_path_to(file_name) ⇒ Object



4
5
6
# File 'lib/rlsm.rb', line 4

def self.lib_path_to(file_name)
  File.join(File.dirname(__FILE__), 'rlsm', file_name)
end

.require_extension(extension) ⇒ Object



15
16
17
# File 'lib/rlsm/helper.rb', line 15

def self.require_extension(extension)
  require File.join(File.dirname(__FILE__), '..', '..', 'ext', extension, extension + '_cext')
end