Class: Vpr::Configuration

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/vpr/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



21
22
23
24
# File 'lib/vpr/configuration.rb', line 21

def initialize
  super
  @remote = :origin
end

Instance Attribute Details

#remoteObject

Returns the value of attribute remote.



7
8
9
# File 'lib/vpr/configuration.rb', line 7

def remote
  @remote
end

Class Method Details

.method_missing(method, *args) ⇒ Object



10
11
12
13
14
# File 'lib/vpr/configuration.rb', line 10

def method_missing method, *args
  instance.send(method, *args)
rescue NoMethodError
  super
end

.respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/vpr/configuration.rb', line 16

def respond_to_missing?(method_name, include_private = false)
  ["remote"].include?(method_name) || super
end