Class: Pageflow::Widget::Resolver

Inherits:
Struct
  • Object
show all
Defined in:
app/models/pageflow/widget.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



45
46
47
# File 'app/models/pageflow/widget.rb', line 45

def options
  @options
end

Instance Method Details

#resultObject



46
47
48
49
50
# File 'app/models/pageflow/widget.rb', line 46

def result
  all.select do |widget|
    widget.enabled?(options)
  end
end