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


39
40
41
# File 'app/models/pageflow/widget.rb', line 39

def options
  @options
end

Instance Method Details

#resultObject


40
41
42
43
44
# File 'app/models/pageflow/widget.rb', line 40

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