Class: SuperDiff::OperationTrees::Main
- Inherits:
-
Object
- Object
- SuperDiff::OperationTrees::Main
- Defined in:
- lib/super_diff/operation_trees/main.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/super_diff/operation_trees/main.rb', line 8 def call if resolved_class begin resolved_class.new([], underlying_object: value) rescue ArgumentError resolved_class.new([]) end else raise Errors::NoOperationalSequenceAvailableError.create(value) end end |