Sha256: a7a229250f93e658c032d446735c5d047f626e85df3ef8abe6aaa81376430400

Contents?: true

Size: 397 Bytes

Versions: 9

Compression:

Stored size: 397 Bytes

Contents

# -*- encoding: utf-8 -*-
module Twitter::Bootstrap::Markup::Rails::Components
  class Base
    include ActionView::Helpers::TagHelper

    attr_accessor :output_buffer, :options, :default_options

    def initialize(*args)
      @output_buffer = ""
      @options = args.extract_options!.reverse_merge(default_options)
    end

    def to_s
      @output_buffer.to_s.html_safe
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
twitter-bootstrap-markup-rails-0.3.2.2 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.3.2.1 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.3.2 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.3.1 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.3.0 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.2.2 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.2.1 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.2.0 lib/twitter-bootstrap-markup-rails/components/base.rb
twitter-bootstrap-markup-rails-0.1.0 lib/twitter-bootstrap-markup-rails/components/base.rb