Class: ActiveadminCms::Processors::Base
- Inherits:
-
Object
- Object
- ActiveadminCms::Processors::Base
- Defined in:
- app/services/activeadmin_cms/processors/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
Instance Method Summary collapse
-
#initialize(html, options = {}) ⇒ Base
constructor
A new instance of Base.
- #option(opt) ⇒ Object
- #process! ⇒ Object
Constructor Details
#initialize(html, options = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 7 |
# File 'app/services/activeadmin_cms/processors/base.rb', line 4 def initialize(html, = {}) @html = html @options = end |
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html.
2 3 4 |
# File 'app/services/activeadmin_cms/processors/base.rb', line 2 def html @html end |
Instance Method Details
#option(opt) ⇒ Object
14 15 16 |
# File 'app/services/activeadmin_cms/processors/base.rb', line 14 def option(opt) @options[opt.to_sym] end |
#process! ⇒ Object
9 10 11 12 |
# File 'app/services/activeadmin_cms/processors/base.rb', line 9 def process! process html end |