Skip to content

Instantly share code, notes, and snippets.

@maxdignan
Last active March 4, 2018 00:48
Show Gist options
  • Save maxdignan/567f6be3c3a4ac9cefca05ef71cf0ef3 to your computer and use it in GitHub Desktop.
Save maxdignan/567f6be3c3a4ac9cefca05ef71cf0ef3 to your computer and use it in GitHub Desktop.
class YourFirstClass
def initialize(word, num_a, num_b, num_c)
@word = word
@num_a = num_a
@num_b = num_b
@num_c = num_c
end
def hello(name)
"Hello #{name}"
end
def self.helloFromClass
"Hello from class #{self}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment