lib/trailblazer/operation/pipetree.rb in trailblazer-operation-0.0.10 vs lib/trailblazer/operation/pipetree.rb in trailblazer-operation-0.0.11
- old
+ new
@@ -1,9 +1,8 @@
require "pipetree"
require "pipetree/railway"
require "trailblazer/operation/result"
-require "uber/option"
if RUBY_VERSION == "1.9.3"
require "trailblazer/operation/1.9.3/option" # TODO: rename to something better.
else
require "trailblazer/operation/option" # TODO: rename to something better.
@@ -123,9 +122,10 @@
end
end
end # DSL
end
+ require "uber/callable"
# Allows defining dependencies and inject/override them via runtime options, if desired.
class Pipetree::Step
include Uber::Callable
def initialize(step, dependencies={})