Module: Bashir::Commands

Included in:
Reader
Defined in:
lib/bashir/commands.rb

Constant Summary collapse

AllCommands =
{ ls: "ls --color=auto", vi: "/usr/bin/vi" }

Instance Method Summary collapse

Instance Method Details

#_command?(word) ⇒ Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/bashir/commands.rb', line 41

def _command? word
  AllCommands[ word.to_sym ]
end