Sha256: 951355deca5ed7688496f05df93fd90467ccd04c1de65fcac331068df7cd87c7

Contents?: true

Size: 257 Bytes

Versions: 2

Compression:

Stored size: 257 Bytes

Contents

require 'bbq/core/util'

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbq-core-0.4.0 lib/bbq/core/roles.rb
bbq-core-0.3.0 lib/bbq/core/roles.rb