Class: AxR::Layer

Inherits:
Object
  • Object
show all
Defined in:
lib/axr/layer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, level, options = {}) ⇒ Layer

Returns a new instance of Layer.



7
8
9
10
11
12
# File 'lib/axr/layer.rb', line 7

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

Instance Attribute Details

#familiar_withObject (readonly)

Returns the value of attribute familiar_with.



5
6
7
# File 'lib/axr/layer.rb', line 5

def familiar_with
  @familiar_with
end

#isolatedObject (readonly) Also known as: isolated?

Returns the value of attribute isolated.



5
6
7
# File 'lib/axr/layer.rb', line 5

def isolated
  @isolated
end

#levelObject (readonly)

Returns the value of attribute level.



5
6
7
# File 'lib/axr/layer.rb', line 5

def level
  @level
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/axr/layer.rb', line 5

def name
  @name
end