Skip to content

Instantly share code, notes, and snippets.

@TXDynamics
Last active December 16, 2015 10:39
Show Gist options
  • Save TXDynamics/5421452 to your computer and use it in GitHub Desktop.
Save TXDynamics/5421452 to your computer and use it in GitHub Desktop.
Ruby Example pass parameter to helper class
#Displays the current date but repeat x times
def display_time(how_many_times)
p = how_many_times.to_i
return p.times {puts Time.now.strftime("%m/%d/%y")}
end
@TXDynamics
Copy link
Author

I edited it to return the correct value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment