Class: DeveloperInfo
- Inherits:
-
Object
- Object
- DeveloperInfo
- Defined in:
- lib/developer_info.rb
Instance Method Summary collapse
- #editor ⇒ Object
- #email ⇒ Object
-
#initialize(git_repository_path) ⇒ DeveloperInfo
constructor
A new instance of DeveloperInfo.
- #name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(git_repository_path) ⇒ DeveloperInfo
Returns a new instance of DeveloperInfo.
4 5 6 |
# File 'lib/developer_info.rb', line 4 def initialize(git_repository_path) @git_repository_path = git_repository_path end |
Instance Method Details
#editor ⇒ Object
8 9 10 |
# File 'lib/developer_info.rb', line 8 def editor git_config.config["core.editor"] end |
#email ⇒ Object
12 13 14 |
# File 'lib/developer_info.rb', line 12 def email git_config.config["user.email"] end |
#name ⇒ Object
16 17 18 |
# File 'lib/developer_info.rb', line 16 def name git_config.config["user.name"] end |
#to_s ⇒ Object
20 21 22 |
# File 'lib/developer_info.rb', line 20 def to_s "#{name} (#{email})" end |