Class: FlashPlayer::Trust

Inherits:
Object
  • Object
show all
Defined in:
lib/flashplayer/trust.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrust

Returns a new instance of Trust.



8
9
10
# File 'lib/flashplayer/trust.rb', line 8

def initialize
  @logger = $stdout
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/flashplayer/trust.rb', line 6

def logger
  @logger
end

Instance Method Details

#add(path) ⇒ Object



12
13
14
15
16
# File 'lib/flashplayer/trust.rb', line 12

def add path
  file = trust_file
  create(file) unless File.exists?(file)
  update_if_necessary file, path
end