Skip to content

Instantly share code, notes, and snippets.

@gavinmcgimpsey
Created October 5, 2015 18:28
Show Gist options
  • Save gavinmcgimpsey/584cb861cf2df8979ec3 to your computer and use it in GitHub Desktop.
Save gavinmcgimpsey/584cb861cf2df8979ec3 to your computer and use it in GitHub Desktop.

Revisions

  1. gavinmcgimpsey created this gist Oct 5, 2015.
    13 changes: 13 additions & 0 deletions bed_module.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    module Bed

    @bed = []

    def load_bed(obj)
    @bed << obj
    end

    def display_bed_contents
    @bed.each {|thing| puts thing}
    end

    end