Class: Cejo::Distro::Commands
- Inherits:
-
Object
- Object
- Cejo::Distro::Commands
- Defined in:
- lib/cejo/distro/commands.rb
Overview
Base
Instance Attribute Summary collapse
-
#parsed_commands ⇒ Object
readonly
Returns the value of attribute parsed_commands.
Instance Method Summary collapse
- #all ⇒ Object
- #any? ⇒ Boolean
-
#initialize(parsed_commands) ⇒ Commands
constructor
A new instance of Commands.
- #packagers ⇒ Object
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_commands ⇒ Object (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
#all ⇒ Object
13 14 15 |
# File 'lib/cejo/distro/commands.rb', line 13 def all parsed_commands end |
#any? ⇒ Boolean
17 18 19 |
# File 'lib/cejo/distro/commands.rb', line 17 def any? parsed_commands.any? end |
#packagers ⇒ Object
21 22 23 |
# File 'lib/cejo/distro/commands.rb', line 21 def packagers all.keys end |