lib/bindata/delayed_io.rb in bindata-2.4.11 vs lib/bindata/delayed_io.rb in bindata-2.4.12

- old
+ new

@@ -114,22 +114,11 @@ def do_num_bytes #:nodoc: 0 end - def eval_parameter_with_delayed_io(key, overrides = nil) - result = eval_parameter_without_delayed_io(key, overrides) - - # Delay processing :onlyif until we do the actual read/write - result = true if key == :onlyif && ! result - - result - end - alias_method :eval_parameter_without_delayed_io, :eval_parameter - alias_method :eval_parameter, :eval_parameter_with_delayed_io - def include_obj? - ! has_parameter?(:onlyif) || eval_parameter_without_delayed_io(:onlyif) + ! has_parameter?(:onlyif) || eval_parameter(:onlyif) end # DelayedIO objects aren't read when #read is called. # The reading is delayed until this method is called. def read_now!