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.21.2 lib/screengem/concerns/configurable.rb
screengem-0.21.1 lib/screengem/concerns/configurable.rb
screengem-0.21.0 lib/screengem/concerns/configurable.rb
screengem-0.20.1 lib/screengem/concerns/configurable.rb
screengem-0.20.0 lib/screengem/concerns/configurable.rb
screengem-0.19.0 lib/screengem/concerns/configurable.rb
screengem-0.18.1 lib/screengem/concerns/configurable.rb
screengem-0.18.0 lib/screengem/concerns/configurable.rb
screengem-0.17.0 lib/screengem/concerns/configurable.rb
screengem-0.16.0 lib/screengem/concerns/configurable.rb
screengem-0.15.0 lib/screengem/concerns/configurable.rb
screengem-0.14.0 lib/screengem/concerns/configurable.rb
screengem-0.13.0 lib/screengem/concerns/configurable.rb
screengem-0.12.0 lib/screengem/concerns/configurable.rb
screengem-0.11.0 lib/screengem/concerns/configurable.rb
screengem-0.10.1 lib/screengem/concerns/configurable.rb
screengem-0.10.0 lib/screengem/concerns/configurable.rb
screengem-0.9.1 lib/screengem/concerns/configurable.rb
screengem-0.9.0 lib/screengem/concerns/configurable.rb
screengem-0.8.1 lib/screengem/concerns/configurable.rb