Sha256: d3b60999eeb365814aec1be43f79cae45f3a1ad98f9b04d55e0c761d0795cd3e
Contents?: true
Size: 310 Bytes
Versions: 1
Compression:
Stored size: 310 Bytes
Contents
module MiniCamel class RouteCollection include Virtus.value_object values do attribute :routes, Array, default: [] end def from(route_name) route_definition = RouteDefinition.new(route_name: route_name) routes << route_definition route_definition end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mini_camel-0.5.8 | lib/mini_camel/route_collection.rb |