Class: Curtain::View

Inherits:
Object
  • Object
show all
Includes:
Curtain
Defined in:
lib/curtain.rb

Constant Summary

Constants included from Curtain

VERSION

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Curtain

included

Constructor Details

#initialize(attrs = {}) ⇒ View

Returns a new instance of View.



28
29
30
31
32
33
# File 'lib/curtain.rb', line 28

def initialize(attrs={})
  @output_buffer = Curtain::OutputBuffer.new
  attrs.each do |k,v|
    send("#{k}=", v)
  end
end

Class Method Details

.render(*args) ⇒ Object



35
36
37
# File 'lib/curtain.rb', line 35

def self.render(*args)
  new.render(*args)
end