Class: Polka::Operations::ParsedCopying

Inherits:
Object
  • Object
show all
Defined in:
lib/polka/operations/parsed_copying.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, dest) ⇒ ParsedCopying

Returns a new instance of ParsedCopying.



9
10
11
12
# File 'lib/polka/operations/parsed_copying.rb', line 9

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

Class Method Details

.call(file, dest) ⇒ Object



4
5
6
7
# File 'lib/polka/operations/parsed_copying.rb', line 4

def self.call(file, dest)
  copier = new(file, dest)
  copier.run
end

Instance Method Details

#runObject



14
15
16
# File 'lib/polka/operations/parsed_copying.rb', line 14

def run
  write(result)
end