Class: RETerm::Components::Template

Inherits:
RETerm::Component show all
Defined in:
lib/reterm/components/template.rb

Overview

Template which may be used as the basis for other components

Instance Attribute Summary

Attributes inherited from RETerm::Component

#window

Instance Method Summary collapse

Methods inherited from RETerm::Component

#colored?, #colors=, #finalize!

Constructor Details

#initialize(args = {}) ⇒ Template

All components must accept args hash (specified via loader)



6
7
# File 'lib/reterm/components/template.rb', line 6

def initialize(args={})
end

Instance Method Details

#activatable?Boolean

Return true if the user should be able to focus and interact with this component, default to false

Returns:

  • (Boolean)


15
16
# File 'lib/reterm/components/template.rb', line 15

def activatable?
end

#activate!Object

Method call when this component is activated



19
20
# File 'lib/reterm/components/template.rb', line 19

def activate!
end

#draw!Object

Override this method to draw component on screen



10
11
# File 'lib/reterm/components/template.rb', line 10

def draw!
end