Sha256: 578131f1b0b4867394d083e3cb2b3daf0a7547242049c76317c9192f7b6a8284

Contents?: true

Size: 266 Bytes

Versions: 7

Compression:

Stored size: 266 Bytes

Contents

module Bodega
  module Optional
    def options(*new_options)
      option_namespace = self.name.split('::').pop.underscore
      Bodega.class_eval do
        option option_namespace do
          options(*new_options.flatten)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bodega-0.4.12 lib/bodega/optional.rb
bodega-0.4.9 lib/bodega/optional.rb
bodega-0.4.4 lib/bodega/optional.rb
bodega-0.4.3 lib/bodega/optional.rb
bodega-0.4.2 lib/bodega/optional.rb
bodega-0.4.1 lib/bodega/optional.rb
bodega-0.4.0 lib/bodega/optional.rb