YUKI Piro Hiroshi
null+****@clear*****
Fri Dec 12 00:42:43 JST 2014
YUKI "Piro" Hiroshi 2014-12-12 00:42:43 +0900 (Fri, 12 Dec 2014) New Revision: 43e76d76c4c4f279347b48999f65180e2a6142d5 https://github.com/droonga/droonga-engine/commit/43e76d76c4c4f279347b48999f65180e2a6142d5 Merged e0f9f34: Merge pull request #30 from piroor/replicas-in-a-branch Message: Remove needless suffix Modified files: lib/droonga/catalog/slice.rb Modified: lib/droonga/catalog/slice.rb (+6 -6) =================================================================== --- lib/droonga/catalog/slice.rb 2014-12-12 00:42:06 +0900 (3df4f78) +++ lib/droonga/catalog/slice.rb 2014-12-12 00:42:43 +0900 (267603c) @@ -16,25 +16,25 @@ module Droonga module Catalog class Slice - def initialize(dataset, raw_slice) + def initialize(dataset, raw) @dataset = dataset - @raw_slice = raw_slice + @raw = raw end def weight - @raw_slice["weight"] || 1 + @raw["weight"] || 1 end def label - @raw_slice["label"] + @raw["label"] end def boundary - @raw_slice["boundary"] + @raw["boundary"] end def volume - @volume ||= Catalog::Volume.create(@dataset, @raw_slice["volume"]) + @volume ||= Catalog::Volume.create(@dataset, @raw["volume"]) end def replicas -------------- next part -------------- HTML����������������������������...Download