lib/jot/ruby/impl_base.rb in jot-ruby-0.1.3 vs lib/jot/ruby/impl_base.rb in jot-ruby-0.1.4

- old
+ new

@@ -22,10 +22,15 @@ end def self.operation_class @operation_class ||= begin klass = Class.new(Operation) - klass.include self::OperationMethods + if self.constants.include? :OperationMethods + klass.include self::OperationMethods + else + raise Errors::NoImplError, "impl has no OperationMethods module" + end + klass.prepend Operation::OriginalOperationMethods klass end end RAW_METHODS = %i[opFromJSON deserialize diff].freeze