From 1192e07ee23857e616311eb3a52cb5dba8911564 Mon Sep 17 00:00:00 2001 From: Andy Maleh Date: Mon, 23 Mar 2015 20:35:07 -0400 Subject: [PATCH] Added irb instructions for another example --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 09b0a72..fa78556 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,8 @@ CourseEnrollment.new(course_id: course.id).valid? ## Another Example +Copy and paste the following code snippets in irb and you should get the output denoted by double arrows (=>). + ```ruby require 'super_module' @@ -230,19 +232,27 @@ MediaAuthorization.create.errors.messages.inspect => "{:credit_card_id=>[\"can't be blank\"], :user_id=>[\"can't be blank\"]}" +```ruby MediaAuthorization.new.foo +``` => "foo" +```ruby MediaAuthorization.new.bar +``` => "bar" +```ruby MediaAuthorization.foo +``` => "self.foo" +```ruby MediaAuthorization.bar +``` => "self.bar"