Sha256: aeddb6d2879ddf1a729e3f9d6a5fc679e9cf17b788e0dbe853fc215870d6fa8b

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

module GhPreview
  module Config
    extend self

    NAME       = 'GitHub Preview'
    GITHUB_URL = 'https://github.com/jbox-web/gh-preview'


    def views_folder
      File.join(gem_path, 'views')
    end


    def public_folder
      File.join(gem_path, 'public')
    end


    private


      def gem_path
        Gem::Specification.find_by_name('gh-preview').gem_dir
      end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gh-preview-1.0.1 lib/gh_preview/config.rb
gh-preview-1.0.0 lib/gh_preview/config.rb