Class: TagOptions::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/tag_options/resolver.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.callObject



7
8
9
# File 'lib/tag_options/resolver.rb', line 7

def self.call(...)
  new(...).call
end

.valuesObject



11
12
13
# File 'lib/tag_options/resolver.rb', line 11

def self.values(...)
  new(...).values
end