Class: ToggleLocalSpm::CLI::Candidate

Inherits:
Struct
  • Object
show all
Defined in:
lib/toggle_local_spm/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



44
45
46
# File 'lib/toggle_local_spm/cli.rb', line 44

def name
  @name
end

#refObject

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



44
45
46
# File 'lib/toggle_local_spm/cli.rb', line 44

def ref
  @ref
end

#resolved_entryObject

Returns the value of attribute resolved_entry

Returns:

  • (Object)

    the current value of resolved_entry



44
45
46
# File 'lib/toggle_local_spm/cli.rb', line 44

def resolved_entry
  @resolved_entry
end

#trackedObject

Returns the value of attribute tracked

Returns:

  • (Object)

    the current value of tracked



44
45
46
# File 'lib/toggle_local_spm/cli.rb', line 44

def tracked
  @tracked
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



44
45
46
# File 'lib/toggle_local_spm/cli.rb', line 44

def type
  @type
end

Instance Method Details

#local?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/toggle_local_spm/cli.rb', line 45

def local?
  ref.is_a?(LocalRef)
end