Class: Orthoses::Outputable::UniqContentBody
- Inherits:
-
Object
- Object
- Orthoses::Outputable::UniqContentBody
- Defined in:
- lib/orthoses/outputable/uniq_content_body.rb
Overview
UniqContentBody is an internal middleware It’s using on orthoses/outputable.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(loader) ⇒ UniqContentBody
constructor
A new instance of UniqContentBody.
Constructor Details
#initialize(loader) ⇒ UniqContentBody
Returns a new instance of UniqContentBody.
8 9 10 |
# File 'lib/orthoses/outputable/uniq_content_body.rb', line 8 def initialize(loader) @loader = loader end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/orthoses/outputable/uniq_content_body.rb', line 12 def call @loader.call.tap do |store| store.each do |name, content| content.uniq! end end end |