Class: RokuBuilder::Options
Instance Method Summary collapse
- #command ⇒ Object
- #device_command? ⇒ Boolean
- #exclude_command? ⇒ Boolean
- #has_source? ⇒ Boolean
-
#initialize(options: nil) ⇒ Options
constructor
A new instance of Options.
- #source_command? ⇒ Boolean
- #validate ⇒ Object
Methods inherited from Hash
Constructor Details
Instance Method Details
#command ⇒ Object
18 19 20 |
# File 'lib/roku_builder/options.rb', line 18 def command (keys & commands).first end |
#device_command? ⇒ Boolean
30 31 32 |
# File 'lib/roku_builder/options.rb', line 30 def device_command? device_commands.include?(command) end |
#exclude_command? ⇒ Boolean
22 23 24 |
# File 'lib/roku_builder/options.rb', line 22 def exclude_command? exclude_commands.include?(command) end |
#has_source? ⇒ Boolean
34 35 36 |
# File 'lib/roku_builder/options.rb', line 34 def has_source? !(keys & sources).empty? end |
#source_command? ⇒ Boolean
26 27 28 |
# File 'lib/roku_builder/options.rb', line 26 def source_command? source_commands.include?(command) end |
#validate ⇒ Object
12 13 14 15 16 |
# File 'lib/roku_builder/options.rb', line 12 def validate validate_commands validate_sources validate_deprivated end |