Class: Gtk2HTML::Layout

Inherits:
Object
  • Object
show all
Includes:
InspectArray
Defined in:
lib/gtk2html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instructions, width: 320, height: 240) ⇒ Layout

Returns a new instance of Layout.



136
137
138
139
140
141
142
143
# File 'lib/gtk2html.rb', line 136

def initialize(instructions, width: 320, height: 240)
  
  pcoords = [0, 0, width, height]
  @pcoords = [0,0,0,0]      
  a = lay_out(instructions, pcoords)
  @a = del_pcoords a

end

Instance Attribute Details

#to_a(inspect: false, verbose: false) ⇒ Object (readonly)

Returns the value of attribute to_a.



134
135
136
# File 'lib/gtk2html.rb', line 134

def to_a
  @to_a
end