Mailinglist Archive: yast-devel (127 mails)

< Previous Next >
[yast-devel] What's new in ruby 2.3
I found this article that seems to be quite easy to understand quick
intro what will be new in ruby 2.3

For me the most interesting part is new dig method, with it we can
easily replace ycp old one get with multiple elements.

Also unlike author I can find also example for using Hash.to_proc with
mapping backended by constant HASH like.

true => "yes",
false => "no",
nil => ""

which can convert list of values from boolean to given mapping.

Also it is quite nice for us when using old ycp code to use new "try"
syntax in ruby with "&."

For complete list of changes see

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages