Class: Spud::CLI::Options
- Inherits:
-
Object
- Object
- Spud::CLI::Options
- Extended by:
- T::Sig
- Defined in:
- lib/spud/cli/options.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
writeonly
Sets the attribute files.
-
#help ⇒ Object
writeonly
Sets the attribute help.
-
#inspect ⇒ Object
writeonly
Sets the attribute inspect.
Instance Method Summary collapse
Instance Attribute Details
#files=(value) ⇒ Object (writeonly)
Sets the attribute files
10 11 12 |
# File 'lib/spud/cli/options.rb', line 10 def files=(value) @files = value end |
#help=(value) ⇒ Object (writeonly)
Sets the attribute help
9 10 11 |
# File 'lib/spud/cli/options.rb', line 9 def help=(value) @help = value end |
#inspect=(value) ⇒ Object (writeonly)
Sets the attribute inspect
11 12 13 |
# File 'lib/spud/cli/options.rb', line 11 def inspect=(value) @inspect = value end |
Instance Method Details
#files? ⇒ Boolean
25 26 27 |
# File 'lib/spud/cli/options.rb', line 25 def files? !!@files end |
#help? ⇒ Boolean
20 21 22 |
# File 'lib/spud/cli/options.rb', line 20 def help? !!@help end |
#inspect? ⇒ Boolean
30 31 32 |
# File 'lib/spud/cli/options.rb', line 30 def inspect? !!@inspect end |
#watches ⇒ Object
14 15 16 17 |
# File 'lib/spud/cli/options.rb', line 14 def watches @watches = T.let(@watches, T.nilable(T::Array[String])) @watches ||= [] end |