Sha256: 49afb569d475db81759b2890d329d1adfb32fce8e6812b0fdeeba074cfc59c27

Contents?: true

Size: 338 Bytes

Versions: 28

Compression:

Stored size: 338 Bytes

Contents

module Screengem
  #
  # Concern that adds ability to configure a primitive with an actor and screen instance.
  #
  module Configurable
    extend ActiveSupport::Concern

    included do
      attr_reader :actor, :screen
    end

    def configure(actor, screen)
      @actor = actor
      @screen = screen

      self
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
screengem-0.8.0 lib/screengem/concerns/configurable.rb
screengem-0.7.3 lib/screengem/concerns/configurable.rb
screengem-0.7.2 lib/screengem/concerns/configurable.rb
screengem-0.7.1 lib/screengem/concerns/configurable.rb
screengem-0.6.0 lib/screengem/concerns/configurable.rb
screengem-0.5.0 lib/screengem/concerns/configurable.rb
screengem-0.4.0 lib/screengem/concerns/configurable.rb
screengem-0.3.0 lib/screengem/concerns/configurable.rb