Sha256: ca63b7454b0eb401b6c66b99d2fff060beb86d644fcbbea3314d7cb42efdad9b

Contents?: true

Size: 210 Bytes

Versions: 3

Compression:

Stored size: 210 Bytes

Contents

require 'bbq/util'

module Bbq
  module Roles
    def roles(*names)
      names.each do |name|
        module_obj = Bbq::Util.find_module(name, self)
        self.extend(module_obj)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bbq-0.2.1 lib/bbq/roles.rb
bbq-0.2.0 lib/bbq/roles.rb
bbq-0.1.0 lib/bbq/roles.rb