Sha256: 4348a3aa21362e3580cdbed6361482aeae38080660481a120906a8a493c4cdb3

Contents?: true

Size: 248 Bytes

Versions: 46

Compression:

Stored size: 248 Bytes

Contents

# frozen_string_literal: true

module Onebox
  module LayoutSupport

    def self.max_text
      500
    end

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

    def to_html
      layout.to_html
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
onebox-2.1.7 lib/onebox/layout_support.rb
onebox-2.1.6 lib/onebox/layout_support.rb
onebox-2.1.5 lib/onebox/layout_support.rb
onebox-2.1.4 lib/onebox/layout_support.rb
onebox-2.1.3 lib/onebox/layout_support.rb
onebox-2.1.2 lib/onebox/layout_support.rb
onebox-2.1.1 lib/onebox/layout_support.rb
onebox-2.1.0 lib/onebox/layout_support.rb
onebox-2.0.2 lib/onebox/layout_support.rb
onebox-2.0.1 lib/onebox/layout_support.rb
onebox-2.0.0 lib/onebox/layout_support.rb
onebox-1.9.30 lib/onebox/layout_support.rb
onebox-1.9.29 lib/onebox/layout_support.rb
onebox-1.9.28.4 lib/onebox/layout_support.rb
onebox-1.9.28.3 lib/onebox/layout_support.rb
onebox-1.9.28.2 lib/onebox/layout_support.rb
onebox-1.9.28.1 lib/onebox/layout_support.rb
onebox-1.9.28 lib/onebox/layout_support.rb
onebox-1.9.27.2 lib/onebox/layout_support.rb
onebox-1.9.27.1 lib/onebox/layout_support.rb