Class: RETerm::Components::SList
- Inherits:
-
RETerm::Component
- Object
- RETerm::Component
- RETerm::Components::SList
- Includes:
- RETerm::CDKComponent
- Defined in:
- lib/reterm/components/slist.rb
Overview
Scrolling List CDK Component
Instance Attribute Summary
Attributes inherited from RETerm::Component
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ SList
constructor
Initialize the SList component.
Methods included from RETerm::CDKComponent
#activatable?, #activate!, #colors=, #component, #draw!, #value
Methods inherited from RETerm::Component
#activatable?, #activate!, #colored?, #colors=, #finalize!
Constructor Details
#initialize(args = {}) ⇒ SList
Initialize the SList component
13 14 15 16 |
# File 'lib/reterm/components/slist.rb', line 13 def initialize(args={}) @title = args[:title] || "" @items = args[:items] || [] end |