lib/flex_station_data/concerns/service.rb in flex-station-data-0.1.1 vs lib/flex_station_data/concerns/service.rb in flex-station-data-0.2.0

- old
+ new

@@ -3,9 +3,13 @@ module FlexStationData module Concerns module Service extend ActiveSupport::Concern + def to_proc + Proc.new(&method(:call)) + end + class_methods do def call(*args, &block) new(*args).call(&block) end