Sha256: 790226d00d601f5d6976706a0a9dddcc3ff4360b826f6e0b1736b2cbf4181ba0
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 Bytes
Contents
module Picky module Generators module Weights # Is used for runtime-only strategies. # # Note: Pretends to be a backend but # does nothing at all. # # To override, implement: # * weight_for(size) # During indextime. # Probably never used. # * [] symbol_or_string # During runtime. # # TODO Find a better name. # class Runtime < Strategy # It is not saved, by default. # def saved? false end # Returns nil. # def weight_for _ # Nothing. end # Saves nothing by default. # def []= _, _ end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-3.5.2 | lib/picky/generators/weights/runtime.rb |
picky-3.5.1 | lib/picky/generators/weights/runtime.rb |