Class: FlashPlayer::Trust
- Inherits:
-
Object
- Object
- FlashPlayer::Trust
- Defined in:
- lib/flashplayer/trust.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
- #add(path) ⇒ Object
-
#initialize ⇒ Trust
constructor
A new instance of Trust.
Constructor Details
#initialize ⇒ Trust
Returns a new instance of Trust.
8 9 10 |
# File 'lib/flashplayer/trust.rb', line 8 def initialize @logger = $stdout end |
Instance Attribute Details
#logger ⇒ Object
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 |