Sha256: 59591c7f9419ae57fb1b7189309ea66cc4ca84ad794d09b5eae9b175614207ae

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

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


module Xot


  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# Xot

Version data entries

4 entries across 4 versions & 1 rubygems

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