Skip to content

Instantly share code, notes, and snippets.

Janne-Matti Nurminen

Contact details

Really think you can find me online, LOL :D

Speaker bio

Janne-Matti is an independent systems arcitect and a consultant constantly looking for new problems to solve and complexities to

@value or= do ->
1 + 2
class Repo
def initialize(path)
@path = path
end
def commits
@commits ||= log.
gsub(/\t/, " "). # remove tabs
split('$$'). # split by marker
select { |commit| commit != "" }. # only consider non-empty
@terotil
terotil / stat.rb
Created March 6, 2012 06:49
which approach is better?
class Stat
def initialize(raw)
@raw = raw
end
def file
@file ||= parse_file_from_raw
end
def name