Class: Tagfish::Update::Updater
- Inherits:
-
Object
- Object
- Tagfish::Update::Updater
- Defined in:
- lib/tagfish/update/updater.rb
Instance Method Summary collapse
-
#initialize(filters) ⇒ Updater
constructor
A new instance of Updater.
- #update(tokens) ⇒ Object
Constructor Details
#initialize(filters) ⇒ Updater
Returns a new instance of Updater.
8 9 10 |
# File 'lib/tagfish/update/updater.rb', line 8 def initialize(filters) @filters = filters end |
Instance Method Details
#update(tokens) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/tagfish/update/updater.rb', line 12 def update(tokens) tokens.map do |token| if token.is_a_uri_token? update_uri_token(token) else token end end end |