class method self.new

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.new(indent=2)

Create a CSS builder.

out

Object receiving the markup.1 out must respond to <<.

indent

Number of spaces used for indentation (0 implies no indentation and no line breaks).

Parameters

indent opt = 2
Source
# File activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb, line 101
    def initialize(indent=2)
      @indent      = indent
      @target      = []
      @parts       = []
      @library     = {}
    end

Defined in activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb line 101 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Builder::CSS

Type at least 2 characters to search.

↑↓ navigate · open · esc close