Sha256: 724d5fb22c19a6f14d400a281027864b5a77cb4ed126709b15e4ed1010fcd939

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

module MiniCamel
  class RouteBuilder
    include Virtus.value_object

    values do
      attribute :route_collection
    end

    def configure
      raise NotImplementedError
    end

    def route_collection
      @route_collection ||= RouteCollection.new
    end

    private

    def from(route_name)
      route_collection.from(route_name)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mini_camel-0.5.8 lib/mini_camel/route_builder.rb