Class: Fet::Ui::Key
- Inherits:
-
Object
- Object
- Fet::Ui::Key
- Defined in:
- lib/fet/ui/key.rb
Overview
Shows the current level’s key in the UI
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
Instance Method Summary collapse
-
#initialize(level) ⇒ Key
constructor
A new instance of Key.
- #start ⇒ Object
Constructor Details
#initialize(level) ⇒ Key
Returns a new instance of Key.
9 10 11 |
# File 'lib/fet/ui/key.rb', line 9 def initialize(level) self.level = level end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
7 8 9 |
# File 'lib/fet/ui/key.rb', line 7 def level @level end |
Instance Method Details
#start ⇒ Object
13 14 15 16 |
# File 'lib/fet/ui/key.rb', line 13 def start self.text ||= generate_text text.text = text_value end |