Skip to content

Instantly share code, notes, and snippets.

@mrkplt
Last active August 29, 2015 14:17
Show Gist options
  • Save mrkplt/7fb65807e60e9ce8aec2 to your computer and use it in GitHub Desktop.
Save mrkplt/7fb65807e60e9ce8aec2 to your computer and use it in GitHub Desktop.

Revisions

  1. mrkplt revised this gist Mar 29, 2015. No changes.
  2. mrkplt created this gist Mar 29, 2015.
    24 changes: 24 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    class A
    attr_reader :b

    def initialize
    @b = B.new
    end
    end

    class B
    attr_reader :c

    def initialize
    @c = C.new
    end
    end

    class C
    def name
    'Oh God what have I done.'
    end
    end

    a = A.new
    a.b.c.name