Class: Cejo::Distro::Commands

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/distro/commands.rb

Overview

Base

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed_commands) ⇒ Commands

Returns a new instance of Commands.



9
10
11
# File 'lib/cejo/distro/commands.rb', line 9

def initialize(parsed_commands)
  @parsed_commands = parsed_commands
end

Instance Attribute Details

#parsed_commandsObject (readonly)

Returns the value of attribute parsed_commands.



7
8
9
# File 'lib/cejo/distro/commands.rb', line 7

def parsed_commands
  @parsed_commands
end

Instance Method Details

#allObject



13
14
15
# File 'lib/cejo/distro/commands.rb', line 13

def all
  parsed_commands
end

#any?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/cejo/distro/commands.rb', line 17

def any?
  parsed_commands.any?
end

#packagersObject



21
22
23
# File 'lib/cejo/distro/commands.rb', line 21

def packagers
  all.keys
end