Class: NyanCat::UI
- Inherits:
-
Object
- Object
- NyanCat::UI
- Defined in:
- lib/nyan-cat/ui.rb
Instance Method Summary collapse
-
#initialize(cat) ⇒ UI
constructor
A new instance of UI.
- #render ⇒ Object
Constructor Details
#initialize(cat) ⇒ UI
Returns a new instance of UI.
3 4 5 |
# File 'lib/nyan-cat/ui.rb', line 3 def initialize(cat) @cat = cat end |
Instance Method Details
#render ⇒ Object
7 8 9 10 11 |
# File 'lib/nyan-cat/ui.rb', line 7 def render loop do render_frame(@cat.tick) end end |