Class: GitSnip::Config
- Inherits:
-
Object
- Object
- GitSnip::Config
- Defined in:
- lib/git_snip/config.rb
Instance Method Summary collapse
-
#initialize(repo_path = '.') ⇒ Config
constructor
A new instance of Config.
- #options ⇒ Object
Constructor Details
#initialize(repo_path = '.') ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/git_snip/config.rb', line 7 def initialize(repo_path = '.') @repo_path = repo_path end |
Instance Method Details
#options ⇒ Object
11 12 13 |
# File 'lib/git_snip/config.rb', line 11 def @options ||= read_file || {} end |