static public Method

BlueCloth.new( content="", *restrictions )

Create a new BlueCloth string.

Source Code

# File bluecloth.rb, line 126
def initialize( content="", *restrictions )
        @log = Logger::new( $deferr )
        @log.level = $DEBUG ?
                Logger::DEBUG :
                ($VERBOSE ? Logger::INFO : Logger::WARN)
        @scanner = nil

        # Add any restrictions, and set the line-folding attribute to reflect
        # what happens by default.
        @filter_html = nil
        @filter_styles = nil
        restrictions.flatten.each {|r| __send__("#{r}=", true) }
        @fold_lines = true

        super( content )

        @log.debug "String is: %p" % self
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.