Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More intuitive way of instantiating structures

  • Loading branch information...
commit a923b44cb2f2af4d2011b3160bea8fa411728292 1 parent 7f24e99
@Tonkpils Tonkpils authored
Showing with 2 additions and 11 deletions.
  1. +0 −9 lib/rdata.rb
  2. +1 −1  spec/queue_spec.rb
  3. +1 −1  spec/stack_spec.rb
View
9 lib/rdata.rb
@@ -1,12 +1,3 @@
require 'rdata/version'
require "rdata/stack.rb"
require "rdata/queue.rb"
-
-module RData
- def self.Stack
- Stack.new
- end
- def self.Queue
- Queue.new
- end
-end
View
2  spec/queue_spec.rb
@@ -2,7 +2,7 @@
describe RData::Queue do
- let(:queue) { RData.Queue }
+ let(:queue) { RData::Queue.new }
context "An empty queue" do
View
2  spec/stack_spec.rb
@@ -2,7 +2,7 @@
describe RData::Stack do
- let(:stack) { RData.Stack }
+ let(:stack) { RData::Stack.new }
context "An empty stack" do
Please sign in to comment.
Something went wrong with that request. Please try again.