Class: Dedalus::Container

Inherits:
Element
  • Object
show all
Defined in:
lib/dedalus/elements.rb

Instance Attribute Summary

Attributes inherited from Element

#background_color, #color, #height, #height_percent, #margin, #offset, #padding, #position, #shown, #width, #width_percent, #z_order

Instance Method Summary collapse

Methods inherited from Element

#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #record?, #tiny_font, #view, #window

Constructor Details

#initialize(contents, attrs = {}) ⇒ Container

Returns a new instance of Container.



90
91
92
93
# File 'lib/dedalus/elements.rb', line 90

def initialize(contents, attrs={})
  @contents = contents
  super(attrs)
end

Instance Method Details

#showObject



95
96
97
# File 'lib/dedalus/elements.rb', line 95

def show
  @contents
end