Class: RETerm::Components::Button

Inherits:
RETerm::Component show all
Includes:
RETerm::CDKComponent
Defined in:
lib/reterm/components/button.rb

Overview

CDK Button Component

Instance Attribute Summary

Attributes inherited from RETerm::Component

#window

Instance Method Summary collapse

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 = {}) ⇒ Button

Initialize the Button component

Parameters:

  • args (Hash) (defaults to: {})

    button params

Options Hash (args):

  • :title (String)

    title of button



11
12
13
# File 'lib/reterm/components/button.rb', line 11

def initialize(args={})
  @title = args[:title] || ""
end