Class: Gtk2HTML::Layout
- Inherits:
-
Object
- Object
- Gtk2HTML::Layout
- Defined in:
- lib/gtk2html.rb
Instance Attribute Summary collapse
-
#to_a ⇒ Object
readonly
Returns the value of attribute to_a.
Instance Method Summary collapse
-
#initialize(instructions, width: 320, height: 240) ⇒ Layout
constructor
A new instance of Layout.
Constructor Details
#initialize(instructions, width: 320, height: 240) ⇒ Layout
Returns a new instance of Layout.
83 84 85 86 87 88 89 |
# File 'lib/gtk2html.rb', line 83 def initialize(instructions, width: 320, height: 240) @width, @height = width, height a = lay_out(instructions, pcoords: [0, 0, @width, @height]) @to_a = a end |
Instance Attribute Details
#to_a ⇒ Object (readonly)
Returns the value of attribute to_a.
81 82 83 |
# File 'lib/gtk2html.rb', line 81 def to_a @to_a end |