Class: Privacy::Processor

Inherits:
Object
  • Object
show all
Defined in:
lib/privacy/processor.rb

Constant Summary collapse

DIRECTORY =
'processed'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Processor

Returns a new instance of Processor.



10
11
12
13
# File 'lib/privacy/processor.rb', line 10

def initialize(file)
  @file = file
  process unless @file.start_with? '~'
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



6
7
8
# File 'lib/privacy/processor.rb', line 6

def file
  @file
end