Method: Jeweler::VersionHelper#initialize
- Defined in:
- lib/jeweler/version_helper.rb
#initialize(base_dir) ⇒ VersionHelper
Returns a new instance of VersionHelper.
76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/jeweler/version_helper.rb', line 76 def initialize(base_dir) self.base_dir = base_dir if File.exists?(yaml_path) extend YamlExtension parse_yaml else extend PlaintextExtension if File.exists?(plaintext_path) parse_plaintext end end end |