lib/picky/generators/weights/constant.rb in picky-4.0.0pre1 vs lib/picky/generators/weights/constant.rb in picky-4.0.0pre2

- old
+ new

@@ -11,20 +11,19 @@ # # Examples: # * Picky::Weights::Constant.new # Uses 0.0 as a constant weight. # * Picky::Weights::Constant.new(3.14) # Uses 3.14 as a constant weight. # - class Constant < Runtime + class Constant < Stub def initialize weight = 0.0 @weight = weight end # Always returns the constant weight, # except if there are no ids. # def [] _ - @weight end # Returns the constant weight, # except if there are no ids. \ No newline at end of file