Class: CkeditorRailser

Inherits:
Object
  • Object
show all
Defined in:
app/services/ckeditor_railser.rb

Constant Summary collapse

RAILS_STRUCTURE =
{
  rails_assets: {
    javascripts: /\.js\z/,
    stylesheets: /\.css\z/,
    images: /\.(png|jpg|jpeg)\z/,
    otheres: nil
  }
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



11
12
13
# File 'app/services/ckeditor_railser.rb', line 11

def actions
  @actions
end

#base_pathObject

Returns the value of attribute base_path.



11
12
13
# File 'app/services/ckeditor_railser.rb', line 11

def base_path
  @base_path
end

Instance Method Details

#process(path = nil) ⇒ Object



13
14
15
16
17
18
# File 'app/services/ckeditor_railser.rb', line 13

def process path=nil
  self.base_path = path || '.'
  raise "base path #{base_path} does not exist" unless Pathname.new(base_path).exist?
  init_structure
  railsing!
end