Skip to content

Instantly share code, notes, and snippets.

@schultyy
Created February 21, 2015 15:51
Show Gist options
  • Save schultyy/560038029f22732ac023 to your computer and use it in GitHub Desktop.
Save schultyy/560038029f22732ac023 to your computer and use it in GitHub Desktop.
# map funktioniert genau wie each, mit dem unterschied, dass each den rueckgabewert des blocks ignoriert
# map gibt dir eine liste mit den rueckgabewerten des blocks zurueck
list_of_issues = Octokit.list_issues(identifier).map do |issue|
model = Apiclient::Issue.new(issue)
end
file.write(YAML.dump(list_of_issues))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment