User Tools

Site Tools


programming:ruby:basics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programming:ruby:basics [2023/11/01 07:31] – removed - external edit (Unknown date) 127.0.0.1programming:ruby:basics [2023/11/01 07:31] (current) – ↷ Page moved from camunda:programming:ruby:basics to programming:ruby:basics skipidar
Line 1: Line 1:
 +===== Ruby =====
  
 +===Development Environment===
 +
 +==Notepad++==
 +- Crappy Autocompletion\\
 ++ Fast Run of code using the NPPExec Plugin \\
 ++ Syntax coloring\\
 ++ Free\\
 +
 +
 +
 +=== Basics ===
 +
 +==Running ruby code==
 +1. You can turn the cmd into a ruby interactive console by typing "irb"
 +<code>
 +irb
 +</code>
 +
 +2. You can run a one-row script using the ruby interpreter directly
 +<code>
 +ruby -e 'puts "hi"'
 +</code>
 +
 +3. The best way to run ruby scripts is - to write them into the Notepad++ and run them using the NPPExec Plugin. The NPPExec Script can look like that:
 +<code>
 +cmd /c ruby "$(FULL_CURRENT_PATH)"
 +</code>
 +
 +==Autocomplete for Notepad++==
 +[[http://pastebin.com/f4fedbb27|Here]] is some autocomplete file for Notepad++ to name "ruby.xml" and to put into
 +<code>
 +...Notepad + + \ Plugins \ API
 +</code>