Class: Alchemy::ElementsBlockHelper::BlockHelper
- Inherits:
-
Object
- Object
- Alchemy::ElementsBlockHelper::BlockHelper
- Defined in:
- app/helpers/alchemy/elements_block_helper.rb
Overview
Base class for our block-level helpers.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#helpers ⇒ Object
readonly
Returns the value of attribute helpers.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #element ⇒ Object
-
#initialize(helpers, opts = {}) ⇒ BlockHelper
constructor
A new instance of BlockHelper.
Constructor Details
#initialize(helpers, opts = {}) ⇒ BlockHelper
Returns a new instance of BlockHelper.
12 13 14 15 |
# File 'app/helpers/alchemy/elements_block_helper.rb', line 12 def initialize(helpers, opts = {}) @helpers = helpers @opts = opts end |
Instance Attribute Details
#helpers ⇒ Object (readonly)
Returns the value of attribute helpers.
9 10 11 |
# File 'app/helpers/alchemy/elements_block_helper.rb', line 9 def helpers @helpers end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
10 11 12 |
# File 'app/helpers/alchemy/elements_block_helper.rb', line 10 def opts @opts end |
Instance Method Details
#element ⇒ Object
17 18 19 |
# File 'app/helpers/alchemy/elements_block_helper.rb', line 17 def element opts[:element] end |