Class: Refile::App::Proxy Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(peek, file) ⇒ Proxy

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Proxy.



14
15
16
17
# File 'lib/refile/app.rb', line 14

def initialize(peek, file)
  @peek = peek
  @file = file
end

Instance Method Details

#closeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
# File 'lib/refile/app.rb', line 19

def close
  @file.close
end

#each(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
26
# File 'lib/refile/app.rb', line 23

def each(&block)
  block.call(@peek)
  @file.each(&block)
end