Evaluate the selection in ♥♥♥Ruby♥♥♥, and print the result.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
Default.sublime-commands
README.md
RubyEval.py

README.md

RubyEval

Evaluate the selection in ♥♥♥Ruby♥♥♥, and print the result.

Installation

$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
$ git clone https://github.com/jugyo/SublimeRubyEval.git RubyEval

Usage

The ruby_eval command is binded to super+k, super+e.

Customize

In your Preferences.sublime-settings:

{
  …
  "ruby_eval": {
    // "ruby": "/usr/local/bin/ruby"
    // "ruby": "~/.rvm/bin/ruby"
    "ruby": "~/.rbenv/versions/2.0.0-dev/bin/ruby"
  }
  …
}

The Default is ruby.