Created
September 19, 2017 01:37
-
-
Save yuryu/7b53b86d1eeb6d39b355e694ff78fc1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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