Class: Defile::App::Proxy
- Inherits:
-
Object
- Object
- Defile::App::Proxy
- Defined in:
- lib/defile/app.rb
Instance Method Summary collapse
- #close ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(peek, file) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(peek, file) ⇒ Proxy
Returns a new instance of Proxy.
13 14 15 16 |
# File 'lib/defile/app.rb', line 13 def initialize(peek, file) @peek = peek @file = file end |
Instance Method Details
#close ⇒ Object
18 19 20 |
# File 'lib/defile/app.rb', line 18 def close @file.close end |
#each(&block) ⇒ Object
22 23 24 25 |
# File 'lib/defile/app.rb', line 22 def each(&block) block.call(@peek) @file.each(&block) end |