Class: ActiveadminCms::Processors::Base

Inherits:
Object
  • Object
show all
Defined in:
app/services/activeadmin_cms/processors/base.rb

Direct Known Subclasses

ParseMenu, ParseTemplate

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @html = html
  @options = options
end

Instance Attribute Details

#htmlObject

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