Last active
January 10, 2018 01:50
-
-
Save gbpereira/f8078f161716ed42a97d to your computer and use it in GitHub Desktop.
This file contains 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
# declaração de variáveis | |
integer = 1 # fixnum | |
float = 1.0 | |
array = [] | |
hash = {} | |
string = 'Olá Seccomp!' | |
symbol = :seccomp | |
range = (1..10) | |
regexp = /one/ | |
# declaração inline | |
a, b, c, d = 1, 2, 3, 4 | |
# tipos de variáveis | |
year = 2015 # variável local | |
_year = 2015 # variável local | |
@year = 2015 # variável de instância | |
@@year = 2015 # variável de classe | |
$year = 2015 # variável global | |
YEAR = 2015 # constante | |
Year = 2015 # constante |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment