Sha256: 7c11da8a4f18f33ac6318a2b47b65442a8c8e8f4ec39d36a9687e72630380262

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 Bytes

Contents

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


module Xot


  module Module

    module_function

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

    def version()
      open(root_dir 'VERSION') {|f| f.readline.chomp}
    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# Module


end# Xot

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xot-0.1.30 lib/xot/module.rb
xot-0.1.29 lib/xot/module.rb
xot-0.1.28 lib/xot/module.rb
xot-0.1.27 lib/xot/module.rb
xot-0.1.26 lib/xot/module.rb
xot-0.1.25 lib/xot/module.rb
xot-0.1.24 lib/xot/module.rb
xot-0.1.23 lib/xot/module.rb
xot-0.1.22 lib/xot/module.rb