Module: Unify

Defined in:
lib/unify.rb,
lib/unify/css.rb,
lib/unify/html.rb,
lib/unify/http.rb

Defined Under Namespace

Classes: CSS, HTML, HTTP

Class Method Summary collapse

Class Method Details

.css(&block) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/unify/css.rb', line 3

def self.css(&block)
  css = Unify::CSS.new(&block)
  if block_given?
    css.instance_eval(&block)
  end
  css.to_css
end

.html(&block) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/unify/html.rb', line 3

def self.html(&block)
  html = Unify::HTML.new(&block)
  if block_given?
    html.instance_eval(&block)
  end
  html.to_html
end

.http(&block) ⇒ Object



3
4
5
# File 'lib/unify/http.rb', line 3

def self.http(&block)
  Unify::HTTP.new(&block)
end