Sha256: 215105c63316872057b4025a1fa3141c55acad9f3c429eb988007c733eca41f8
Contents?: true
Size: 614 Bytes
Versions: 5207
Compression:
Stored size: 614 Bytes
Contents
module RSpec module Core # @private class OutputWrapper # @private attr_accessor :output # @private def initialize(output) @output = output end def respond_to?(name, priv=false) output.respond_to?(name, priv) end def method_missing(name, *args, &block) output.send(name, *args, &block) end # Redirect calls for IO interface methods IO.instance_methods(false).each do |method| define_method(method) do |*args, &block| output.send(method, *args, &block) end end end end end
Version data entries
5,207 entries across 5,137 versions & 95 rubygems