Sha256: 6ed27b69233a1e35807e670fdeb363665f9a1717c55aba74068b9719fc1fda95

Contents?: true

Size: 425 Bytes

Versions: 7

Compression:

Stored size: 425 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

7 entries across 7 versions & 1 rubygems

Version Path
xot-0.1.21 lib/xot/module.rb
xot-0.1.20 lib/xot/module.rb
xot-0.1.19 lib/xot/module.rb
xot-0.1.16 lib/xot/module.rb
xot-0.1.15 lib/xot/module.rb
xot-0.1.14 lib/xot/module.rb
xot-0.1.13 lib/xot/module.rb