Code Coverage
 
Lines
Covered
92.31% covered (success)
92.31%
12 / 13
1
module TheFox
1
module TermKit
1
class ViewController < Controller
1
attr_accessor :app
1
attr_accessor :view
1
def initialize(view = nil)
6
if !view.nil? && !view.is_a?(View)
2
raise ArgumentError, "Argument is not a View -- #{view.class} given"
end
4
super()
4
@app = nil
4
@view = view
end
1
def render(area = nil)
0
@view.render(area)
end
end
end
end