Sha256: 977aadefb424aa047fd43aabfa27f91ddd642d5fcfa42b3179d20368a5a2950b

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

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

    def ext_dir()
      root_dir 'ext'
    end

  end# Extension


end# Beeps

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beeps-0.3 lib/beeps/extension.rb