Class: Spud::CLI::Options

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/spud/cli/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#files=(value) ⇒ Object (writeonly)

Sets the attribute files

Parameters:

  • value

    the value to set the attribute files to.



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

Parameters:

  • value

    the value to set the attribute help to.



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

Parameters:

  • value

    the value to set the attribute inspect to.



11
12
13
# File 'lib/spud/cli/options.rb', line 11

def inspect=(value)
  @inspect = value
end

Instance Method Details

#files?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/spud/cli/options.rb', line 25

def files?
  !!@files
end

#help?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/spud/cli/options.rb', line 20

def help?
  !!@help
end

#inspect?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/spud/cli/options.rb', line 30

def inspect?
  !!@inspect
end

#watchesObject



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