made Key#scope return Scope object instead of Scope#to_s

This commit is contained in:
2011-03-13 20:23:23 +00:00
parent ea820d44f4
commit e4aaedfe58
3 changed files with 9 additions and 8 deletions

View File

@@ -30,13 +30,14 @@ module Redistat
options[:depth]
end
def scope
@scope.to_s
end
# def scope
# @scope.to_s
# end
def scope=(input)
@scope = (input.instance_of?(Redistat::Scope)) ? input : Scope.new(input)
end
attr_reader :scope
def label=(input)
@label = (input.instance_of?(Redistat::Label)) ? input : Label.create(input, @options)