Sha256: 5efa7977f2fa10aff47875d26d774ff6cded795170f222ae2f96c17f9c0d996c

Contents?: true

Size: 427 Bytes

Versions: 7

Compression:

Stored size: 427 Bytes

Contents

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


module Rucy


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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rucy-0.1.21 lib/rucy/module.rb
rucy-0.1.20 lib/rucy/module.rb
rucy-0.1.18 lib/rucy/module.rb
rucy-0.1.16 lib/rucy/module.rb
rucy-0.1.15 lib/rucy/module.rb
rucy-0.1.14 lib/rucy/module.rb
rucy-0.1.13 lib/rucy/module.rb