RubyWin Tutorial(2)

[Prev] [Next] [Index]

Eval Selection

You can run a part of script in Ruby1 child window buffer. Select a part of script which you want to run, and select [Ruby]-[Eval Selection] menu item. Here is the image which

c = 5 + 10
puts c

are selected and eval selection.

eval selection


Run File

RubyWin can run ruby script file. Select [Ruby]-[Run file...] and select file which you want to run.


Check Syntax

RubyWin can check syntax of script. (like as ruby -c option.) Input Ruby1 Child window:

class Foo
  def foo
end

Then, select [Ruby]-[Check Syntax] menu item. RubyWin displays Console child window:

Ruby1:3: parse error(SyntaxError)

    from Ruby1:3

[Prev] [Next] [Index]