I love you approach to the subject. Very elegant, keep it coming.
@timeactor
11 жыл бұрын
I"m new to programming and picked up Beginning Ruby yesterday. Last night I looked for some videos on ruby and came across your videos and subscribed...Today I realized that "YOU" wrote the friggen book!...I guess this is part of Ruby's Magic !
@skare168
11 жыл бұрын
"Why does it always return true?", because it'll create that symbol at that moment.
@tapan.sharma
11 жыл бұрын
The answer to your question of why does [Symbol.all_symbols.include? :a ] always return true is because it will first check for that particular symbol(:a) if it exists and if so then returns true or incase it does not exists then it is created and pushed to the array and then returns true.
10 жыл бұрын
"the concept of 42ness"
@yli8888
9 жыл бұрын
The symbol table and the operation examples are useful. Thank you.
@nikitaluparev6478
10 жыл бұрын
could you explain why Symbol.all_symbols.include? at any given symbol always return true ?
@CooperPress
11 жыл бұрын
Symbol#id2name is a core part of Ruby and will also be present in Ruby 2.0. I don't know if Rails does anything magic with it though.
@CooperPress
12 жыл бұрын
Indeed!
@perliva
11 жыл бұрын
thank you!
@estebancastro5735
11 жыл бұрын
so! good video, please do more of ruby
@pim1pl
11 жыл бұрын
Thanks a lot, sir.
@mhutter
12 жыл бұрын
"Why does it always return true?" - well, the answer lies within the last line of code :D
Пікірлер: 17