Sha256: 525f1b8c4bcbc6ecd553dc9639c628d53e4d29b84c6023d6a6728e30a0d1ac29

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 Bytes

Contents

# -*- coding: utf-8 -*-


module Rucy


  module Extension

    module_function

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

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

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

    def inc_dir()
      root_dir 'include'
    end

    def lib_dir()
      root_dir 'lib'
    end

  end# Extension


end# Rucy

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rucy-0.1.34 lib/rucy/extension.rb
rucy-0.1.33 lib/rucy/extension.rb
rucy-0.1.32 lib/rucy/extension.rb
rucy-0.1.31 lib/rucy/extension.rb