Skip to content

Commit

Permalink
Remove HashWithIndifferentAccess as we no longer pass these along
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Sep 26, 2009
1 parent fddbbc2 commit 39d4e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rc/spec_map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.from_params(params)
end

def initialize(*args)
@map, @segment_map = HashWithIndifferentAccess.new, HashWithIndifferentAccess.new
@map, @segment_map = {}, {}
args.each {|a| self << a}
end

Expand Down Expand Up @@ -42,12 +42,12 @@ def each(&block)

# return spec matching segment. If singelton supplied, make sure it matches that boolean
def for_segment(segment, singleton = nil)
spec = @segment_map[segment]
spec = @segment_map[segment.to_s]
singleton.nil? ? spec : (spec.singleton? == singleton && spec)
end

def [](name)
@map[name]
@map[name.to_s]
end

def to_s
Expand Down

0 comments on commit 39d4e31

Please sign in to comment.