Module: Remedy

Defined in:
lib/remedy.rb,
lib/remedy/key.rb,
lib/remedy/ansi.rb,
lib/remedy/size.rb,
lib/remedy/view.rb,
lib/remedy/console.rb,
lib/remedy/partial.rb,
lib/remedy/version.rb,
lib/remedy/keyboard.rb,
lib/remedy/viewport.rb,
lib/remedy/characters.rb,
lib/remedy/interaction.rb,
lib/remedy/console_resize.rb

Defined Under Namespace

Modules: ANSI, Characters, Console, Keyboard Classes: Interaction, Key, Partial, Size, View, Viewport

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.libsObject



4
5
6
7
8
9
# File 'lib/remedy.rb', line 4

def libs
  %w{
    version ansi characters console console_resize
    interaction key keyboard partial view viewport
  }
end

Instance Method Details

#Key(object) ⇒ Object



118
119
120
121
122
123
124
# File 'lib/remedy/key.rb', line 118

def Key object
  if object.is_a? Key then
    object
  else
    Key.new object
  end
end