programming:ruby:basics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
programming:ruby:basics [2023/11/01 07:31] – removed - external edit (Unknown date) 127.0.0.1 | programming: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 | ||
+ | </ | ||
+ | |||
+ | 2. You can run a one-row script using the ruby interpreter directly | ||
+ | < | ||
+ | ruby -e 'puts " | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | < | ||
+ | cmd /c ruby " | ||
+ | </ | ||
+ | |||
+ | ==Autocomplete for Notepad++== | ||
+ | [[http:// | ||
+ | < | ||
+ | ...Notepad + + \ Plugins \ API | ||
+ | </ |