Skip to content

Instantly share code, notes, and snippets.

@kenchan
Created October 12, 2017 09:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenchan/8732b456e2bef8640dd5852add0ae0d9 to your computer and use it in GitHub Desktop.
Save kenchan/8732b456e2bef8640dd5852add0ae0d9 to your computer and use it in GitHub Desktop.
class Ruler
def initialize(default_length = 30)
@length = default_length
@delfaut_length = default_length
end
def reset_length_to_default
@length = @default_length
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment