Skip to content

Instantly share code, notes, and snippets.

@sqfmason
Created October 4, 2015 20:08
Show Gist options
  • Save sqfmason/ef63c5484fbf847f7725 to your computer and use it in GitHub Desktop.
Save sqfmason/ef63c5484fbf847f7725 to your computer and use it in GitHub Desktop.
def square
@a = params[:length_of_side].to_f
@area = @a**2
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment