Class: TagOptions::Resolvers::Style
- Inherits:
-
TagOptions::Resolver
- Object
- TagOptions::Resolver
- TagOptions::Resolvers::Style
- Defined in:
- lib/tag_options/resolvers/style.rb
Instance Method Summary collapse
Methods inherited from TagOptions::Resolver
Constructor Details
This class inherits a constructor from TagOptions::Resolver
Instance Method Details
#call ⇒ Object
6 7 8 |
# File 'lib/tag_options/resolvers/style.rb', line 6 def call values.join(" ") end |
#values ⇒ Object
10 11 12 |
# File 'lib/tag_options/resolvers/style.rb', line 10 def values styles.map { |p, v| "#{p}: #{v};" } end |