<commit_before>---
layout: lecture
title: Singleton Classes
---

section.center data-background="#000"
  h1.white Singleton Classes

section.center
  p You know the <a href="http://en.wikipedia.org/wiki/Singleton_pattern">Singleton pattern</a>?

section.center
  p Good, cause we ain't gonna talk about it.

section data-background="http://media.giphy.com/media/U7l2ANkN9gl9e/giphy.gif"

section.center data-background="#000"
  h2.white Questions

section.center
  p What is a scope gate?

section.center
  p Which are the keywords that introduce scope gates?

section.center
  p What is a module?

section.center
  p What is a class?

section.center
  p What does the instance variables API let us do?

section.center
  p What does the class variables API let us do?

section.center
  p What does the constants API let us do?

section.center
  p What is BasicObject does?

section.center
  p What does #method_missing does?

section.center
  p What does #respond_to_missing does?

section.center
  p What does #const_missing does?

section.center
  p Where are instance variables stored?<commit_msg>Update 13.slim<commit_after>---
layout: lecture
title: Singleton Classes
---

section.center data-background="#000"
  h1.white Singleton Classes

section.center
  p You know the <a href="http://en.wikipedia.org/wiki/Singleton_pattern">Singleton pattern</a>?

section.center
  p Good, cause we ain't gonna talk about it.

section data-background="http://media.giphy.com/media/U7l2ANkN9gl9e/giphy.gif"

section.center data-background="#000"
  h2.white Questions

section.center
  p What is a scope gate?

section.center
  p Which are the keywords that introduce scope gates?

section.center
  p What is a module?

section.center
  p What is a class?
  
  YOU SUCK!!!

section.center
  p What does the instance variables API let us do?

section.center
  p What does the class variables API let us do?

section.center
  p What does the constants API let us do?

section.center
  p What is BasicObject does?

section.center
  p What does #method_missing does?

section.center
  p What does #respond_to_missing does?

section.center
  p What does #const_missing does?

section.center
  p Where are instance variables stored?
{'fraction_non_alphanumeric': 0.0793507664562669, 'fraction_numerical': 0.011722272317403066, 'mean_word_length': 3.953125, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '5279010', 'n_tokens_mistral': 707, 'n_tokens_neox': 692, 'n_words': 258}