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, #width, #width_percent

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.



92
93
94
95
# File 'lib/dedalus/elements.rb', line 92

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

Instance Method Details

#showObject



97
98
99
# File 'lib/dedalus/elements.rb', line 97

def show
  @contents
end