Class: Lays::Layer

Inherits:
Struct
  • Object
show all
Defined in:
lib/lays.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Layer

Returns a new instance of Layer.



8
9
10
11
12
# File 'lib/lays.rb', line 8

def initialize(attrs={})
  attrs.each do |attr, val|
    self.send("self.#{attr}=", val)
  end
end

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



7
8
9
# File 'lib/lays.rb', line 7

def content
  @content
end

#space_charObject

Returns the value of attribute space_char

Returns:

  • (Object)

    the current value of space_char



7
8
9
# File 'lib/lays.rb', line 7

def space_char
  @space_char
end

#transparent_charObject

Returns the value of attribute transparent_char

Returns:

  • (Object)

    the current value of transparent_char



7
8
9
# File 'lib/lays.rb', line 7

def transparent_char
  @transparent_char
end