Hi,

On May 7, 2011 10:58pm, Gary Yngve <[email protected]> wrote:
activesupport vs extlib:

instead .snakecase, it is .underscore

A small warning there, the AS inflector methods for those conversions are sometimes subtly different from their apparent extlib equivalents, which is mostly an issue when you try to create paths or constant names. In this case, #underscore will also convert "::" to "/", so eg:

"Merb::SomeThing".snake_case
#=> "merb::some_thing"

"Merb::SomeThing".underscore
#=> "merb/some_thing"

There are a few other instances where those differences matter, so read the String documentation at http://rubydoc.info/gems/activesupport/3.0.7/String carefully and hope that your specs are covering those corner cases ;-) In 99% of your code though, it will likely be a purely mechanical switch as it has been for merb itself so far.

--
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/merb?hl=en.

Reply via email to