# File lib/jeweler/version_helper.rb, line 33 def parse_yaml yaml = read_yaml @major = (yaml['major'] || yaml[:major]).to_i @minor = (yaml['minor'] || yaml[:minor]).to_i @patch = (yaml['patch'] || yaml[:patch]).to_i @build = (yaml['build'] || yaml[:build]) end
# File lib/jeweler/version_helper.rb, line 41 def read_yaml if File.exists?(yaml_path) YAML.load_file(yaml_path) else raise VersionYmlError, "#{yaml_path} does not exist!" end end
# File lib/jeweler/version_helper.rb, line 29 def refresh parse_yaml end
Generated with the Darkfish Rdoc Generator 2.