Sha256: 8555fda3356b72e4a90da928380b075cf30480861d58b35ca8604167e8a8a248

Contents?: true

Size: 422 Bytes

Versions: 9

Compression:

Stored size: 422 Bytes

Contents

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


module Rays


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

Version data entries

9 entries across 9 versions & 1 rubygems

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