Module: Rucy::Extension

Defined in:
lib/rucy/extension.rb

Class Method Summary collapse

Class Method Details

.inc_dirObject



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

def inc_dir()
  root_dir 'include'
end

.lib_dirObject



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

def lib_dir()
  root_dir 'lib'
end

.nameObject



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

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

.root_dir(path = '') ⇒ Object



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

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

.versionObject



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

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