Sha256: c5ded6494a2e9fe2645daad985ee7b5cebc4c635c2755d0151adc98de84b3dbe

Contents?: true

Size: 337 Bytes

Versions: 59

Compression:

Stored size: 337 Bytes

Contents

module Para
  module Markup
    class Component
      attr_reader :view

      delegate :content_tag, :capture, to: :view

      def initialize view
        @view = view
      end

      protected

      def merge_class!(options, klass)
        options[:class] ||= ""
        options[:class] += " #{ klass }"
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
para-0.12.4 lib/para/markup/component.rb
para-0.12.3 lib/para/markup/component.rb
para-0.12.2 lib/para/markup/component.rb
para-0.12.1 lib/para/markup/component.rb
para-0.12.0 lib/para/markup/component.rb
para-0.11.4 lib/para/markup/component.rb
para-0.11.3 lib/para/markup/component.rb
para-0.11.2 lib/para/markup/component.rb
para-0.11.1 lib/para/markup/component.rb
para-0.11.0 lib/para/markup/component.rb
para-0.10.0 lib/para/markup/component.rb
para-0.9.4 lib/para/markup/component.rb
para-0.9.3.3 lib/para/markup/component.rb
para-0.9.3.2 lib/para/markup/component.rb
para-0.9.3.1 lib/para/markup/component.rb
para-0.9.2 lib/para/markup/component.rb
para-0.9.0 lib/para/markup/component.rb
para-0.8.15 lib/para/markup/component.rb
para-0.8.14 lib/para/markup/component.rb
para-0.8.13 lib/para/markup/component.rb