Module: Onebox::LayoutSupport

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.max_text ⇒ Object



6
7
8
# File 'lib/onebox/layout_support.rb', line 6

def self.max_text
  500
end

Instance Method Details

#layout ⇒ Object



10
11
12
# File 'lib/onebox/layout_support.rb', line 10

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

#to_html ⇒ Object



14
15
16
# File 'lib/onebox/layout_support.rb', line 14

def to_html
  layout.to_html
end