Module: Reflex::Extension

Defined in:
lib/reflex/extension.rb

Class Method Summary collapse

Class Method Details

.ext_dirObject



28
29
30
# File 'lib/reflex/extension.rb', line 28

def ext_dir()
  root_dir 'ext'
end

.inc_dirObject



20
21
22
# File 'lib/reflex/extension.rb', line 20

def inc_dir()
  root_dir 'include'
end

.lib_dirObject



24
25
26
# File 'lib/reflex/extension.rb', line 24

def lib_dir()
  root_dir 'lib'
end

.nameObject



8
9
10
# File 'lib/reflex/extension.rb', line 8

def name()
  super.split('::')[-2]
end

.root_dir(path = '') ⇒ Object



16
17
18
# File 'lib/reflex/extension.rb', line 16

def root_dir(path = '')
  File.expand_path "../../#{path}", __dir__
end

.versionObject



12
13
14
# File 'lib/reflex/extension.rb', line 12

def version()
  File.read(root_dir 'VERSION')[/[\d\.]+/]
end