Module: Guts::NavigatableConcern::ClassMethods
- Defined in:
- app/concerns/guts/navigatable_concern.rb
Overview
Class methods for the concern
Instance Attribute Summary collapse
-
#navigatable_opts ⇒ Hash
The configuration for the navigatable object.
Instance Method Summary collapse
-
#navigatable(*variables, **opts) ⇒ Object
Allows a class to be navigatable.
Instance Attribute Details
#navigatable_opts ⇒ Hash
Returns the configuration for the navigatable object.
25 26 27 |
# File 'app/concerns/guts/navigatable_concern.rb', line 25 def navigatable_opts @navigatable_opts end |
Instance Method Details
#navigatable(*variables, **opts) ⇒ Object
Allows a class to be navigatable
34 35 36 37 38 39 |
# File 'app/concerns/guts/navigatable_concern.rb', line 34 def navigatable(*variables, **opts) @navigatable_opts = { variables: variables, format: opts[:format] } end |