lib/rio/scheme/stdio.rb in rio-0.5.1 vs lib/rio/scheme/stdio.rb in rio-0.6.0

- old
+ new

@@ -1,8 +1,8 @@ #-- # =========================================================================== -# Copyright (c) 2005-2012 Christopher Kleckner +# Copyright (c) 2005-2017 Christopher Kleckner # All rights reserved # # This file is part of the Rio library for ruby. # # Rio is free software; you can redistribute it and/or modify @@ -32,11 +32,11 @@ RIOSCHEME = 'stdio' RIOPATH = RIO::RRL::CHMAP.invert[RIOSCHEME].to_s.freeze def initialize(u) super(u) end - extend Forwardable - def_delegators :uri, :path=, :path + extend RIO::Fwd + fwd :uri, :path require 'rio/iomode' def open(m) case when m.primarily_read? uri.scheme = 'stdin'