Class: DeclarativeGrid::Renderers::Html

Inherits:
AbstractRenderer show all
Defined in:
lib/declarative_grid/renderers/html.rb

Instance Attribute Summary

Attributes inherited from AbstractRenderer

#options, #records

Instance Method Summary collapse

Methods inherited from AbstractRenderer

#columns, #each_record, #each_row, grid_class, grid_class=, #headers, inherited, #initialize, #inspect, options, options=

Constructor Details

This class inherits a constructor from DeclarativeGrid::Renderers::AbstractRenderer

Instance Method Details

#perform(io) ⇒ Object



10
11
12
# File 'lib/declarative_grid/renderers/html.rb', line 10

def perform(io)
  table {|s| io.puts(s) }
end

#to_stringObject



14
15
16
# File 'lib/declarative_grid/renderers/html.rb', line 14

def to_string
  super.html_safe
end

#utilObject



5
6
7
# File 'lib/declarative_grid/renderers/html.rb', line 5

def util
  ERB::Util
end