Skip to content

Instantly share code, notes, and snippets.

@philtr
Last active May 17, 2022 19:39
Show Gist options
  • Save philtr/e8b1df082426e7817e7e3a53c35960bc to your computer and use it in GitHub Desktop.
Save philtr/e8b1df082426e7817e7e3a53c35960bc to your computer and use it in GitHub Desktop.
# • - space
# ─┤ - tab
class Thing
─┤def to_hash
─┤─┤some_long_method_call(that,•wraps:•••:across,
─┤─┤••••••••••••••••••••••••••••several:•:lines,
─┤─┤••••••••••••••••••••••••••••and_it:••:has,
─┤─┤••••••••••••••••••••••••••••aligned:•:arguments)
─┤─┤{
─┤─┤─┤name:••••••"My thing"
─┤─┤─┤content:•••"It does lots of cool stuff."
─┤─┤─┤created_at:•Time.current
─┤─┤}
─┤end
end
# You can adjust your tab width according to your preferences.
class Thing
───┤def to_hash
───┤───┤some_long_method_call(that,•wraps:•••:across,
───┤───┤••••••••••••••••••••••••••••several:•:lines,
───┤───┤••••••••••••••••••••••••••••and_it:••:has,
───┤───┤••••••••••••••••••••••••••••aligned:•:arguments)
───┤───┤{
───┤───┤───┤name:••••••"My thing"
───┤───┤───┤content:•••"It does lots of cool stuff."
───┤───┤───┤created_at:•Time.current
───┤───┤}
───┤end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment