Sha256: 8d106c7d1a92ae5671977626edb35cb9d277c4de5ee98438d6b068d65bf3f8aa

Contents?: true

Size: 395 Bytes

Versions: 13

Compression:

Stored size: 395 Bytes

Contents

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

13 entries across 13 versions & 1 rubygems

Version Path
rucy-0.3 lib/rucy/extension.rb
rucy-0.2.1 lib/rucy/extension.rb
rucy-0.2 lib/rucy/extension.rb
rucy-0.1.44 lib/rucy/extension.rb
rucy-0.1.43 lib/rucy/extension.rb
rucy-0.1.42 lib/rucy/extension.rb
rucy-0.1.41 lib/rucy/extension.rb
rucy-0.1.40 lib/rucy/extension.rb
rucy-0.1.39 lib/rucy/extension.rb
rucy-0.1.38 lib/rucy/extension.rb
rucy-0.1.37 lib/rucy/extension.rb
rucy-0.1.36 lib/rucy/extension.rb
rucy-0.1.35 lib/rucy/extension.rb