Class: Gem::Commands::LocalCommand::Setting

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/commands/local_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, status = "off") ⇒ Setting

Returns a new instance of Setting.



8
9
10
# File 'lib/rubygems/commands/local_command.rb', line 8

def initialize(location,  status = "off")
  @location, @status = location, status
end

Instance Attribute Details

#locationObject

Returns the value of attribute location.



7
8
9
# File 'lib/rubygems/commands/local_command.rb', line 7

def location
  @location
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/rubygems/commands/local_command.rb', line 7

def status
  @status
end