Class: RETerm::Components::Radio
- Inherits:
-
RETerm::Component
- Object
- RETerm::Component
- RETerm::Components::Radio
- Includes:
- RETerm::CDKComponent
- Defined in:
- lib/reterm/components/radio.rb
Overview
CDK Radio Component
Instance Attribute Summary
Attributes inherited from RETerm::Component
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Radio
constructor
Initialize the Radio 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 = {}) ⇒ Radio
Initialize the Radio component
13 14 15 16 |
# File 'lib/reterm/components/radio.rb', line 13 def initialize(args={}) @title = args[:title] || "" @items = args[:items] || [] end |