Class: TagOptions::Resolvers::Style

Inherits:
TagOptions::Resolver show all
Defined in:
lib/tag_options/resolvers/style.rb

Instance Method Summary collapse

Methods inherited from TagOptions::Resolver

call, #initialize, values

Constructor Details

This class inherits a constructor from TagOptions::Resolver

Instance Method Details

#callObject



6
7
8
# File 'lib/tag_options/resolvers/style.rb', line 6

def call
  values.join(" ")
end

#valuesObject



10
11
12
# File 'lib/tag_options/resolvers/style.rb', line 10

def values
  styles.map { |p, v| "#{p}: #{v};" }
end