Class: Dedalus::Container

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

Instance Attribute Summary

Attributes inherited from Element

#background_color, #height, #height_percent, #margin, #padding, #position, #width, #width_percent

Instance Method Summary collapse

Methods inherited from Element

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

Constructor Details

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

Returns a new instance of Container.



80
81
82
83
# File 'lib/dedalus/elements.rb', line 80

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

Instance Method Details

#showObject



85
86
87
# File 'lib/dedalus/elements.rb', line 85

def show
  @contents
end