Browse Source

Update using new features in devalot-pandoc

master
Peter J. Jones 5 years ago
parent
commit
a75a0c259c
4 changed files with 17 additions and 1 deletions
  1. 7
    0
      README.md
  2. 4
    0
      script/irb.sh
  3. 5
    0
      slides.md
  4. 1
    1
      vendor/devalot-pandoc

+ 7
- 0
README.md View File

@@ -95,6 +95,13 @@ character.name

# Everything is an Object

~~~~ {.ruby exec="script/irb.sh"}
irb(main):001:0> 1.class
=> Fixnum
irb(main):002:0> "Hello World".class
=> String
~~~~



- Numeric literals are objects.

+ 4
- 0
script/irb.sh View File

@@ -0,0 +1,4 @@
#!/bin/sh

irb -f --noreadline -Isrc --prompt-mode=default $@ \
| sed -e '1d' -e '$d' # Damn IRB includes 2 extra lines!

+ 5
- 0
slides.md View File

@@ -71,6 +71,11 @@

# Everything is an Object

~~~ {.ruby exec="script/irb.sh"}
1.class
"Hello World".class
~~~

<div class="notes">

* Numeric literals are objects.

+ 1
- 1
vendor/devalot-pandoc

@@ -1 +1 @@
Subproject commit 6f6b81e761bd6b50b79e0ca39daee1e50b2738b5
Subproject commit 07d476ed6c2c757d7163e170dbc9877997f45b1f

Loading…
Cancel
Save