Sha256: a3c2f52b7619751083ce526fc2e73891479764da4ac40361b60ace38f02eae1d

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

# encoding: utf-8

Rango.import("settings")
Rango.import("mixins/application")
Rango.import("mixins/configurable")

class Project
  class << self
    include Rango::ImportMixin
    include Rango::ApplicationMixin
    include Rango::Configurable
    # @since 0.0.1
    # @return [String] String reprezentation of project root directory.
    root = attribute :root, Dir.pwd

    # @since 0.0.1
    # @return [Rango::Settings::Framework] Project settings.
    attribute :settings, Rango::Settings::Framework.new

    # @since 0.0.1
    # @return [Rango::Router] Project main router.
    attribute :router

    def bundled?
      @bundled ||= Dir.exist?(File.join(Project.root, "gems"))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rango-0.0.4 lib/rango/project.rb