Module: Onebox::LayoutSupport

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.max_textObject



4
5
6
# File 'lib/onebox/layout_support.rb', line 4

def self.max_text
  500
end

Instance Method Details

#layoutObject



8
9
10
# File 'lib/onebox/layout_support.rb', line 8

def layout
  @layout ||= Layout.new(self.class.onebox_name, record, @cache)
end

#to_htmlObject



12
13
14
# File 'lib/onebox/layout_support.rb', line 12

def to_html
  layout.to_html
end