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.
5 6 7 |
# File 'lib/git_snip/config.rb', line 5 def initialize(repo_path = '.') @repo_path = repo_path end |
Instance Method Details
#options ⇒ Object
9 10 11 |
# File 'lib/git_snip/config.rb', line 9 def @options ||= read_file || {} end |