>> "Hello world".reverse
=> "dlrow olleH"
More Related Contents:
- /^a-eg-h/.match(‘f’) gives null in Ruby
- How do I use the conditional operator (? :) in Ruby?
- Double vs single quotes
- What is the difference between include and extend in Ruby?
- Your Ruby version is 2.0.0, but your Gemfile specified 2.1.0
- Debugging in ruby 1.9
- Is Hash Rocket deprecated?
- Ruby function to remove all white spaces?
- Ruby: Inherit code that works with class variables
- Output array to CSV in Ruby
- Sort hash by key, return hash in Ruby
- How do I run a rake task from Capistrano?
- I don’t understand ruby local scope
- Weird backslash substitution in Ruby
- Printing the source code of a Ruby block
- Why does Ruby’s ‘gets’ includes the closing newline?
- Ruby multiline block without do end
- Error to install Nokogiri on OSX 10.9 Maverick?
- `&:views_count` in `Post.published.collect(&:views_count)` [duplicate]
- How to assign hash[‘a’][‘b’]= ‘c’ if hash[‘a’] doesn’t exist?
- How do I test a function with gets.chomp in it?
- Why does white-space affect ruby function calls?
- Why does “compass watch” say it cannot load sass/script/node (LoadError)?
- When to use `require`, `load` or `autoload` in Ruby?
- Natural Language Processing in Ruby [closed]
- How can I get the absolute URL when extracting links using Nokogiri?
- How to determine if a character is a Chinese character
- How to turn a string into a method call? [duplicate]
- What is the behavior when using both positional and keyword arguments in Ruby?
- Should I use alias or alias_method?