lib/neo/dci/context.rb in neo-dci-0.4.1 vs lib/neo/dci/context.rb in neo-dci-0.5.0
- old
+ new
@@ -22,10 +22,10 @@
raise
end
def self.result_class(klass = :reader)
@result_class = klass unless klass == :reader
- @result_class || ContextResult
+ defined?(@result_class) ? @result_class : ContextResult
end
def call
raise NotImplementedError
end