Skip to content

Instantly share code, notes, and snippets.

@osyo-manga
Created December 13, 2015 06:57
Show Gist options
  • Select an option

  • Save osyo-manga/75068b887e78c180dfdd to your computer and use it in GitHub Desktop.

Select an option

Save osyo-manga/75068b887e78c180dfdd to your computer and use it in GitHub Desktop.
define
class X
extend Define
plus(a: Fixnum, b: Fixnum){
a + b
}
plus(a: String, b: String){
"#{a}:#{b}"
}
end
x = X.new
p x.plus("homu", "mami")
p x.plus(1, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment