Top "Ruby-1.9" questions

Ruby 1.9 is a shortcut for ruby versions 1.9.1, 1.9.2 and 1.9.3. Ruby is a dynamic language that focuses on simplicity and expressiveness.

Is it possible to define a block with default arguments in Ruby?

This question deals with optional arguments passed to a Ruby block. I'm wondering if it's also possible to define arguments …

ruby arguments default-value ruby-1.9
How can I match Korean characters in a Ruby regular expression?

I have some basic validations for usernames using regular expressions, something like [\w-_]+, and I want to add support for …

ruby regex unicode ruby-1.9 cjk
How to check a String if it's an ASCII or not?

For example something like: "ASCII".is_ascii? # => true "تجربة".is_ascii? # => false

ruby-on-rails-3 ruby-1.9