Sha256: b5dcfec186d6cdd9ac6d1b7a035a22b6f474c307f250d77117d82345d00a5df1

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

module Eastwood
  autoload :Config,  'eastwood/config'
  autoload :Context, 'eastwood/context'
  autoload :Engine,  'eastwood/engine'
  autoload :Rails,   'eastwood/rails'

  module Context
    autoload :ActionRoute,  'eastwood/context/action_route'
    autoload :JourneyRoute, 'eastwood/context/journey_route'
    autoload :HashRoute,    'eastwood/context/hash_route'
    autoload :RouteHelpers, 'eastwood/context/route_helpers'
  end

  class << self

    def configure
      yield self
    end
  end

  include Config
  include Rails

  class EastwoodError < StandardError; end
  class InvalidRouteStyleError < EastwoodError; end
end

require 'eastwood/engine' if defined?(::Rails)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
eastwood-0.3.8 lib/eastwood.rb
eastwood-0.3.7 lib/eastwood.rb