Expand All

ruby.step

message <<-MARKDOWN
### Goal

To teach you Ruby we are going to explain the basic building blocks used in the Ruby language and allow you reinforce what you've learned through challenges.

When you have completed this curriculum you should understand:

* The command line and why we use it
* How to run your Ruby code interactively (irb) or from a file
* Simple types like numbers, strings, and booleans
* Data structures like arrays and hashes
* Object concepts like Classes

### Requirements

We're going to be working with:

* Ruby
* A command line program
* A text editor of your choice

Everything should be set up the night before during our
<a href="/installfest">Installfest</a>. Please
ensure you have everything working _before_ you show up for the workshop.

You can verify that you have everything working by trying this out in your terminal:

<div class="console"><pre>
$ irb
>> 1 + 2
=> 3
$
</pre>
</div>

If you can do that, you are probably good to go.

### Format

Each lesson will look like this:

<div style="background: white; border: 1px solid black; padding-left: 4em;">
  <h1 class="doc_title" style="margin-top: 0em;">Step Title</h1>
  <div class="goals">
    <h1>Goal:</h1>
    <p>Description of the current step.
    <p>Red because big goals are scary.
  </div>
  <div class="steps">
    <h1>Steps:</h1>
    <pre class="term">steps to take.</pre>
    <div class="console">
      <pre>
def code_to_write
  1 + 1
end</pre>
    </div>
    <p>Yellow because we've gotten it done, but we have no clue what's going on.
  </div>
  <div class="challenge">
    <h1>Challenges</h1>

    <p>A list of activities to try to reinforce the concepts learned in the lesson</p>

    <p>Orange because it stimulates the brain by <a href="http://www.color-wheel-pro.com/color-meaning.html">increasing its oxygen supply</a>.</p>
  </div>
  <div class="explanation">
    <h1>Explanation</h1>
    <p>Details of what the steps actually did... spell out the cause and effect.
    <p>Green because we can tie everything together now.
  </div>
</div>
MARKDOWN

next_step "what_is_ruby"