Class: GitGraph::Configuration
- Inherits:
-
Object
- Object
- GitGraph::Configuration
- Defined in:
- lib/gitGraph/configuration.rb
Class Attribute Summary collapse
-
.password ⇒ Object
Returns the value of attribute password.
-
.username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Class Attribute Details
.password ⇒ Object
Returns the value of attribute password.
4 5 6 |
# File 'lib/gitGraph/configuration.rb', line 4 def password @password end |
.username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/gitGraph/configuration.rb', line 4 def username @username end |
Class Method Details
.block_error ⇒ Object
11 12 13 |
# File 'lib/gitGraph/configuration.rb', line 11 def block_error "A block must be passed in order to set attributes." end |
.config {|_self| ... } ⇒ Object
6 7 8 9 |
# File 'lib/gitGraph/configuration.rb', line 6 def config raise ArgumentError, block_error if !block_given? yield self end |