It may not a bug but a specification. A block returns the number of a line in which the block is defined for its "source_location." When you use procs instead of blocks, it returns the values you expected. Code: 1 require 'pp' 2...technohippy (Yasushi ANDO)
No one comments on this issue for a week so that this is rejected. I'm sorry for proposing a dull issue and I'll be back with more fascinating proposal someday.technohippy (Yasushi ANDO)
Hi Thomas, this is a stunning idea for me! I attached my patches of bad quality to add the yaml literal to ruby1.9.3. I wish they could help you. technohippy (Yasushi ANDO)
Although I know all of you dislike static typing it cannot be denied that there are some people aspire for introducing it in ruby. The dartlang solved the problem in unique way called Optionally Typing. In Dart you can declare types for ...technohippy (Yasushi ANDO)
I checked this just for my curiosity. Foo ||= 42 does not work on ruby1.8, ::Foo = 42 # constant re-assignment Foo = Foo || 42 # uninitialized constant and these two statements raise exceptions on ruby1.9. IMHO, ...technohippy (Yasushi ANDO)
One week has passed since the RubyKaigi in which "ennnnnd" was born came to the end. So, I hesitate to say, it's time to close this joke. Yes, this is a JOKE. I'm so sorry Ralph. Honestly your request seems not too bad for me. If you sti...technohippy (Yasushi ANDO)
The same kinds of requests as "endall" are being discussed on #5054 which is set to Joke. So "endall" can be a joke. In the case of "{", the issue below is a bit similar to your's and has been already rejected: http://redmine.ruby-lang...technohippy (Yasushi ANDO)
Your request looks nice for me. Additionally endall will be used at the end of file in most cases, so it's useful if EOF is interpreted as your endall.technohippy (Yasushi ANDO)
Hi Clifford, Thank you for your comment. > Modify your editor so it automatically folds them for you on display. Oh, you might talk about reading code. My concern is writing code. > ... Modify your editor so it automatically u...technohippy (Yasushi ANDO)