Class: Gtk2HTML::Layout
- Inherits:
-
Object
- Object
- Gtk2HTML::Layout
- Includes:
- InspectArray
- Defined in:
- lib/gtk2html.rb
Instance Attribute Summary collapse
-
#to_a(inspect: false, verbose: false) ⇒ 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.
Methods included from InspectArray
Constructor Details
#initialize(instructions, width: 320, height: 240) ⇒ Layout
Returns a new instance of Layout.
146 147 148 149 150 151 |
# File 'lib/gtk2html.rb', line 146 def initialize(instructions, width: 320, height: 240) @pcoords = [0, 0, width, height] @a = lay_out(instructions) end |
Instance Attribute Details
#to_a(inspect: false, verbose: false) ⇒ Object (readonly)
Returns the value of attribute to_a.
144 145 146 |
# File 'lib/gtk2html.rb', line 144 def to_a @to_a end |