module Onebox::LayoutSupport

Public Class Methods

max_text() click to toggle source
# File lib/onebox/layout_support.rb, line 6
def self.max_text
  500
end

Public Instance Methods

layout() click to toggle source
# File lib/onebox/layout_support.rb, line 10
def layout
  @layout ||= Layout.new(self.class.onebox_name, data)
end
to_html() click to toggle source
# File lib/onebox/layout_support.rb, line 14
def to_html
  layout.to_html
end