Module: JqGridRails
- Defined in:
- lib/jqgrid_rails/jqgrid.rb,
lib/jqgrid_rails/railtie.rb,
lib/jqgrid_rails/version.rb,
lib/jqgrid_rails/escape_mappings.rb,
lib/jqgrid_rails/jqgrid_rails_view.rb,
lib/jqgrid_rails/jqgrid_rails_helper.rb,
lib/jqgrid_rails/jqgrid_rails_helpers.rb,
lib/jqgrid_rails/jqgrid_url_generator.rb,
lib/jqgrid_rails/jqgrid_rails_structure.rb,
lib/jqgrid_rails/jqgrid_rails_controller.rb,
lib/jqgrid_rails/jqgrid_rails_generators.rb,
lib/jqgrid_rails/jqgrid_rails_writeexcel.rb,
lib/jqgrid_rails/jqgrid_rails_structure_registry.rb
Defined Under Namespace
Modules: Controller, Generators, Helpers, StructureRegistry, View, WriteExcel
Classes: Helper, JqGrid, Railtie, Structure, UrlGenerator, Version
Constant Summary
collapse
- VERSION =
Version.new('1.2.4')
- ESCAPES =
{
'.' => '___'
}
Class Method Summary
collapse
Class Method Details
.escape(string) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/jqgrid_rails/escape_mappings.rb', line 7
def escape(string)
string = string.to_s.dup
ESCAPES.each_pair do |orig,mapping|
string.gsub!(orig,mapping)
end
string
end
|
.unescape(string) ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/jqgrid_rails/escape_mappings.rb', line 15
def unescape(string)
string = string.to_s.dup
ESCAPES.each_pair do |orig,mapping|
string.gsub!(mapping,orig)
end
string
end
|