Class: FlashPlayer::Trust

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Trust) initialize

A new instance of Trust



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

def initialize
  @logger = $stdout
end

Instance Attribute Details

- (Object) logger

Returns the value of attribute logger



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

def logger
  @logger
end

Instance Method Details

- (Object) add(path)



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

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