Hash :
f31946b3
Author :
Date :
2019-10-25T21:53:29
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
collection =
height: 32434
hats: {"tophat", "bball", "bowler"}
my_function dance: "Tango", partner: "none"
y = type: "dog", legs: 4, tails: 1
hair = "golden"
height = 200
person = { :hair, :height, shoe_size: 40 }
print_table :hair, :height
----------------------------------------------------
[
"collection ",
["operator", "="],
["property", "height"],
["operator", ":"],
["number", "32434"],
["property", "hats"],
["operator", ":"],
["punctuation", "{"],
["string", [
"\"tophat\""
]],
["punctuation", ","],
["string", [
"\"bball\""
]],
["punctuation", ","],
["string", [
"\"bowler\""
]],
["punctuation", "}"],
"\r\n\r\nmy_function ",
["property", "dance"],
["operator", ":"],
["string", [
"\"Tango\""
]],
["punctuation", ","],
["property", "partner"],
["operator", ":"],
["string", [
"\"none\""
]],
"\r\ny ",
["operator", "="],
["property", "type"],
["operator", ":"],
["string", [
"\"dog\""
]],
["punctuation", ","],
["property", "legs"],
["operator", ":"],
["number", "4"],
["punctuation", ","],
["property", "tails"],
["operator", ":"],
["number", "1"],
"\r\n\r\nhair ",
["operator", "="],
["string", [
"\"golden\""
]],
"\r\nheight ",
["operator", "="],
["number", "200"],
"\r\nperson ",
["operator", "="],
["punctuation", "{"],
["operator", ":"],
["property", "hair"],
["punctuation", ","],
["operator", ":"],
["property", "height"],
["punctuation", ","],
["property", "shoe_size"],
["operator", ":"],
["number", "40"],
["punctuation", "}"],
"\r\nprint_table ",
["operator", ":"],
["property", "hair"],
["punctuation", ","],
["operator", ":"],
["property", "height"]
]
----------------------------------------------------
Checks for properties.