Module: Cell::ViewModel::Escaped

Defined in:
lib/cell/escaped.rb

Defined Under Namespace

Modules: Property

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(includer) ⇒ Object



2
3
4
# File 'lib/cell/escaped.rb', line 2

def self.included(includer)
  includer.extend Property
end

Instance Method Details

#escape!(string) ⇒ Object

Can be used as a helper in the cell, too. Feel free to override and use a different escaping implementation.



24
25
26
# File 'lib/cell/escaped.rb', line 24

def escape!(string)
  ::ERB::Util.html_escape(string)
end