Class: Crystal::OptionsForController
- Inherits:
-
Object
- Object
- Crystal::OptionsForController
- Defined in:
- lib/crystal/options_for_controller.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
Instance Method Summary collapse
-
#initialize(controller) ⇒ OptionsForController
constructor
A new instance of OptionsForController.
- #options ⇒ Object
Constructor Details
#initialize(controller) ⇒ OptionsForController
Returns a new instance of OptionsForController.
5 6 7 |
# File 'lib/crystal/options_for_controller.rb', line 5 def initialize(controller) @controller = controller end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
3 4 5 |
# File 'lib/crystal/options_for_controller.rb', line 3 def controller @controller end |
Instance Method Details
#options ⇒ Object
9 10 11 |
# File 'lib/crystal/options_for_controller.rb', line 9 def paths.inject(){|memo, path| memo.deep_merge!(I18n.t(path, :scope => scope, :default => {}))} end |