Skip to content

Instantly share code, notes, and snippets.

@tomykaira
Created July 29, 2015 15:26
Show Gist options
  • Save tomykaira/3d515009cf7bc0410b03 to your computer and use it in GitHub Desktop.
Save tomykaira/3d515009cf7bc0410b03 to your computer and use it in GitHub Desktop.
class ClockRadio
on = self.instance_method(:on!)
define_method(:on!) do
on.bind(self).call
@display_time = true
end
def display_time?
@display_time
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment