Class: Lays::Layer
- Inherits:
-
Struct
- Object
- Struct
- Lays::Layer
- Defined in:
- lib/lays.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#space_char ⇒ Object
Returns the value of attribute space_char.
-
#transparent_char ⇒ Object
Returns the value of attribute transparent_char.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Layer
constructor
A new instance of Layer.
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
#content ⇒ Object
Returns the value of attribute content
7 8 9 |
# File 'lib/lays.rb', line 7 def content @content end |
#space_char ⇒ Object
Returns the value of attribute space_char
7 8 9 |
# File 'lib/lays.rb', line 7 def space_char @space_char end |
#transparent_char ⇒ Object
Returns the value of attribute transparent_char
7 8 9 |
# File 'lib/lays.rb', line 7 def transparent_char @transparent_char end |