Sha256: 3d0c9198e9036ae783757841bfa179bcf52fa02554e144671ffad0434f649310
Contents?: true
Size: 533 Bytes
Versions: 16
Compression:
Stored size: 533 Bytes
Contents
module FakeNamespace module Priceable extend ::FakeNamespace::Mixin included do class_attribute :default_starting_price end on_mixed_in do |options| self.default_starting_price = options[:default_starting_price] end def some_instance_method "some_instance_method_return" end def starting_price @starting_price || self.class.default_starting_price end module ClassMethods def some_class_method "some_class_method_return" end end end end
Version data entries
16 entries across 16 versions & 1 rubygems