Sha256: 9148080e437aca86618fb0336eb22ff53cb4b89593fbb5b0e25d140c8be72e42

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

module Grounds
  ADMIN_ROOT = File.expand_path('../public', File.dirname(__FILE__))

  class App
    def initialize(root)
      @root = root
    end

    def public_root
      expand_path 'public'
    end

    def env
      { files: Dir[expand_path '*'] }
    end

    def expand_path(path)
      File.expand_path(path, @root)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grounds-0.1.0 lib/grounds.rb