Skip to content

Instantly share code, notes, and snippets.

@mbj
Created January 16, 2014 22:06
Show Gist options
  • Save mbj/8464399 to your computer and use it in GitHub Desktop.
Save mbj/8464399 to your computer and use it in GitHub Desktop.
morpher hybrid mode
module Morpher
class Hybrid
include Evaluator::Unary
def call(input)
Evaluation.success(
:input => input,
:output => node.call(input)
)
rescue Morpher::TransformError
node.evaluation(input)
end
end # Hybrid
end # Morpher
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment