Class: Buffer
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(coords, options = {}) ⇒ Buffer
constructor
A new instance of Buffer.
- #record ⇒ Object
- #sizes ⇒ Object
Methods inherited from Area
Methods included from Context
Constructor Details
#initialize(coords, options = {}) ⇒ Buffer
Returns a new instance of Buffer.
3 4 5 6 |
# File 'lib/context/areas/buffer.rb', line 3 def initialize(coords, ={}) @text = {} super(coords, ) end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'lib/context/areas/buffer.rb', line 2 def text @text end |
Instance Method Details
#record ⇒ Object
12 13 14 |
# File 'lib/context/areas/buffer.rb', line 12 def record record = super.merge({:text => text}) end |
#sizes ⇒ Object
8 9 10 |
# File 'lib/context/areas/buffer.rb', line 8 def sizes {:standard => {:height => 0.5, :unit => 'inches'}} end |