Class: TagOptions::Resolver
- Inherits:
-
Object
- Object
- TagOptions::Resolver
- Defined in:
- lib/tag_options/resolver.rb
Direct Known Subclasses
TagOptions::Resolvers::Default, TagOptions::Resolvers::Style
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*values, **conditional_values) ⇒ Resolver
constructor
A new instance of Resolver.
Constructor Details
#initialize(*values, **conditional_values) ⇒ Resolver
Returns a new instance of Resolver.
3 4 5 |
# File 'lib/tag_options/resolver.rb', line 3 def initialize(*values, **conditional_values) @values = [*values.flatten, *resolve_conditional_values(conditional_values)] end |
Class Method Details
.call ⇒ Object
7 8 9 |
# File 'lib/tag_options/resolver.rb', line 7 def self.call(...) new(...).call end |
.values ⇒ Object
11 12 13 |
# File 'lib/tag_options/resolver.rb', line 11 def self.values(...) new(...).values end |