Class: Vpr::Configuration
- Inherits:
-
Object
- Object
- Vpr::Configuration
- Includes:
- Singleton
- Defined in:
- lib/vpr/configuration.rb
Instance Attribute Summary collapse
-
#remote ⇒ Object
Returns the value of attribute remote.
Class Method Summary collapse
- .method_missing(method, *args) ⇒ Object
- .respond_to_missing?(method_name, include_private = false) ⇒ Boolean
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#remote ⇒ Object
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
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 |