lib/flex_station_data/concerns/presenter.rb in flex-station-data-1.0.0 vs lib/flex_station_data/concerns/presenter.rb in flex-station-data-1.0.1
- old
+ new
@@ -1,23 +1,7 @@
-require "active_support/concern"
+require_relative "callable"
module FlexStationData
module Concerns
- module Presenter
- extend ActiveSupport::Concern
-
- def to_proc
- Proc.new(&method(:present))
- end
-
- class_methods do
- def present(*args, &block)
- new(*args).present(&block)
- end
-
- def to_proc
- Proc.new(&method(:present))
- end
- end
- end
+ Presenter = Callable[:present]
end
end