Sha256: 18a14c9fc26306836ff6667f9df8ef5a716b0b4259f869eabbb3c4fa0306ca51

Contents?: true

Size: 378 Bytes

Versions: 8

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

module AxR
  class Layer
    attr_reader :name, :level, :isolated, :familiar_with

    def initialize(name, level, options = {})
      @name          = name
      @level         = level
      @isolated      = options.fetch(:isolated, false)
      @familiar_with = *options.fetch(:familiar_with, [])
    end

    alias isolated? isolated
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
axr-0.8.1 lib/axr/layer.rb
axr-0.8.0 lib/axr/layer.rb
axr-0.7.2 lib/axr/layer.rb
axr-0.7.1 lib/axr/layer.rb
axr-0.6.2 lib/axr/layer.rb
axr-0.6.1 lib/axr/layer.rb
axr-0.6.0 lib/axr/layer.rb
axr-0.5.0 lib/axr/layer.rb