Sha256: d321be95153d4a4c6a60d99847b8b1cc9a14d97f3f58204692e9bbf03f2db12e

Contents?: true

Size: 397 Bytes

Versions: 13

Compression:

Stored size: 397 Bytes

Contents

module Beeps


  module Extension

    module_function

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

    def version()
      File.read(root_dir 'VERSION')[/[\d\.]+/]
    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# Extension


end# Beeps

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
beeps-0.2.1 lib/beeps/extension.rb
beeps-0.2 lib/beeps/extension.rb
beeps-0.1.46 lib/beeps/extension.rb
beeps-0.1.45 lib/beeps/extension.rb
beeps-0.1.44 lib/beeps/extension.rb
beeps-0.1.43 lib/beeps/extension.rb
beeps-0.1.42 lib/beeps/extension.rb
beeps-0.1.41 lib/beeps/extension.rb
beeps-0.1.40 lib/beeps/extension.rb
beeps-0.1.39 lib/beeps/extension.rb
beeps-0.1.38 lib/beeps/extension.rb
beeps-0.1.37 lib/beeps/extension.rb
beeps-0.1.36 lib/beeps/extension.rb