class TheFox::TermKit::ViewController

Attributes

app[RW]
view[RW]

Public Class Methods

new(view = nil) click to toggle source
Calls superclass method TheFox::TermKit::Controller.new
# File lib/termkit/controller/controller_view.rb, line 10
def initialize(view = nil)
    if !view.nil? && !view.is_a?(View)
        raise ArgumentError, "Argument is not a View -- #{view.class} given"
    end
    
    super()
    
    @app = nil
    @view = view
end

Public Instance Methods

render(area = nil) click to toggle source
# File lib/termkit/controller/controller_view.rb, line 21
def render(area = nil)
    @view.render(area)
end