<commit_before><!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="../stylesheets/default.css">
    <link rel="stylesheet" type="text/css" href="../stylesheets/blog-stylesheet.css">
    <link rel="stylesheet" href="../fonts/font-awesome/css/font-awesome.min.css">
    <title>Blocks, Procs, & Lambdas | <NAME></title>
  </head>
  <body>
    <div class="grid grid-pad">
      <div class="col-2-3 header">
        <header>
          <h1><span>aceburgess</span> .github.io</h1>
        </header>
      </div>

      <div class="col-1-1 mobile_break">
      </div>

      <div class="col-1-3 header twitter">
        <a href="https://twitter.com/aceburgess">
          <i class="fa fa-twitter fa-lg"></i>
        </a>
      </div>

      <div class="col-1-1 desktop_break">
        <!--Keeps Content and sidebar below Header-->
      </div>

      <div class="col-1-3 sidebar">
        <nav onclick="">
          <div class="module back">
           <a href="../index.html">
            <i class="fa fa-chevron-left fa-lg"></i></a><z></z>
          </div>

          <div class="module nav">
            <ul id="navigation">
              <li>
                <a href="../index.html">
                  <i class="fa fa-chevron-left fa-4x"></i>
                </a>
              </li>
            </ul>
          </div>
        </nav>
      </div>

      <div class="col-1-1 mobile_break">
      </div>

      <div class="col-2-3 content">
        <main id="entire-blog">
          <div class="blog-header">
            <h1>Blocks, Procs, & Lambdas</h1>
            <h2>The Showdown</h2>
            <h4>March 12, 2015</h4>
          </div>

          <section class="blog-post">
            <p>
              The closures in Ruby seem to sometimes lead to confusion. Today I spent some time researching Blocks, Procs, and Lambdas, and now I'm going to show you what I found and learned.
            </p>
            <h3>Blocks</h3>
            <p>
              Blocks, contrary to what those lying back-stabbers told you about Ruby, are not objects. And that's a shame, but I will discuss that more in the next section because there is a very easy way to make them objects. Essentially, blocks are non-reusable snippets of code that anyone familiar with ruby use all the time when calling tons of different methods that generally need a block to do anything worthwhile like the #each method or the #map method or the #reduce method etc.
            </p><commit_msg>Fix spelling and grammar<commit_after><!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="../stylesheets/default.css">
    <link rel="stylesheet" type="text/css" href="../stylesheets/blog-stylesheet.css">
    <link rel="stylesheet" href="../fonts/font-awesome/css/font-awesome.min.css">
    <title>Blocks, Procs, & Lambdas | <NAME></title>
  </head>
  <body>
    <div class="grid grid-pad">
      <div class="col-2-3 header">
        <header>
          <h1><span>aceburgess</span> .github.io</h1>
        </header>
      </div>

      <div class="col-1-1 mobile_break">
      </div>

      <div class="col-1-3 header twitter">
        <a href="https://twitter.com/aceburgess">
          <i class="fa fa-twitter fa-lg"></i>
        </a>
      </div>

      <div class="col-1-1 desktop_break">
        <!--Keeps Content and sidebar below Header-->
      </div>

      <div class="col-1-3 sidebar">
        <nav onclick="">
          <div class="module back">
           <a href="../index.html">
            <i class="fa fa-chevron-left fa-lg"></i></a><z></z>
          </div>

          <div class="module nav">
            <ul id="navigation">
              <li>
                <a href="../index.html">
                  <i class="fa fa-chevron-left fa-4x"></i>
                </a>
              </li>
            </ul>
          </div>
        </nav>
      </div>

      <div class="col-1-1 mobile_break">
      </div>

      <div class="col-2-3 content">
        <main id="entire-blog">
          <div class="blog-header">
            <h1>Blocks, Procs, & Lambdas</h1>
            <h2>The Showdown</h2>
            <h4>March 12, 2015</h4>
          </div>

          <section class="blog-post">
            <p>
              The closures in Ruby seem to sometimes lead to confusion. Today I spent some time researching Blocks, Procs, and Lambdas, and now I'm going to show you what I found and learned.
            </p>
            <h3>Blocks</h3>
            <p>
              Blocks, contrary to what those lying back-stabbers told you about Ruby, are not objects. And that's a shame, but I will discuss that more in the next section because there is a very easy way to make them objects. Essentially, blocks are non-reusable snippets of code. Anyone familiar with ruby uses them all the time when calling tons of different methods that generally need a block to do anything worthwhile. Some examples are the #each method or the #map method or the #reduce method etc.
            </p>
{'fraction_non_alphanumeric': 0.1465566852100518, 'fraction_numerical': 0.01304431229618262, 'mean_word_length': 1.976027397260274, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '630281', 'n_tokens_mistral': 1631, 'n_tokens_neox': 1546, 'n_words': 482}