Class: GitGraph::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gitGraph/configuration.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/gitGraph/configuration.rb', line 4

def password
  @password
end

.usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/gitGraph/configuration.rb', line 4

def username
  @username
end

Class Method Details

.block_errorObject



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

Yields:

  • (_self)

Yield Parameters:

Raises:

  • (ArgumentError)


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

def config
  raise ArgumentError, block_error if !block_given?
  yield self
end