Class: Defile::App::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/defile/app.rb

Instance Method Summary collapse

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

#closeObject



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