class Paggio

Public Class Methods

css(*args, &block) click to toggle source
# File lib/paggio.rb, line 25
def self.css(*args, &block)
  Formatter.new.format(CSS.new(*args, &block)).to_s
end
html(*args, &block) click to toggle source
# File lib/paggio.rb, line 29
def self.html(*args, &block)
  Formatter.new.format(HTML.new(*args, &block)).to_s
end
html!(&block) click to toggle source
# File lib/paggio.rb, line 33
def self.html!(&block)
  Formatter.new.tap {|f|
    HTML.new(&block).each {|root|
      f.format root
    }
  }.to_s
end
indent(options, &block) click to toggle source
# File lib/paggio.rb, line 21
def self.indent(options, &block)
  options(indent: options, &block)
end
options(options, &block) click to toggle source
# File lib/paggio.rb, line 17
def self.options(options, &block)
  Formatter.options(options, &block)
end