Skip to content

Instantly share code, notes, and snippets.

@yuryu
Created September 19, 2017 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuryu/7b53b86d1eeb6d39b355e694ff78fc1e to your computer and use it in GitHub Desktop.
Save yuryu/7b53b86d1eeb6d39b355e694ff78fc1e to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby
p 'العَرَبِيَّة'
العَرَبِيَّة = 1 + 2 + 3
p العَرَبِيَّة
class ArabicClass
def initialize
@متغير = 0
end
def زيادة
@متغير = @متغير + 1
self
end
def القيمة
@متغير
end
end
حتة = ArabicClass.new
حتة.زيادة.زيادة
p حتة.القيمة
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment