Sha256: 0630fa530f03ac74563ed1fbfbd965175981e2c161ff0feb8ddd6df023993cf2

Contents?: true

Size: 427 Bytes

Versions: 9

Compression:

Stored size: 427 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.21 lib/rays/module.rb
rays-0.1.20 lib/rays/module.rb
rays-0.1.19 lib/rays/module.rb
rays-0.1.18 lib/rays/module.rb
rays-0.1.17 lib/rays/module.rb
rays-0.1.16 lib/rays/module.rb
rays-0.1.15 lib/rays/module.rb
rays-0.1.14 lib/rays/module.rb
rays-0.1.13 lib/rays/module.rb