Class: Dedalus::Elements::Void
- Inherits:
-
Atom
- Object
- Dedalus::Element
- Atom
- Dedalus::Elements::Void
- Defined in:
- lib/dedalus/elements/void.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Attributes inherited from Atom
Attributes inherited from Dedalus::Element
#background_color, #color, #height_percent, #margin, #offset, #padding, #position, #shown, #width_percent, #z_order
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Dedalus::Element
#big_font, #code_font, #draw_bounding_box, #font, #huge_font, #initialize, #record?, #tiny_font, #view, #window
Constructor Details
This class inherits a constructor from Dedalus::Element
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/dedalus/elements/void.rb', line 4 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/dedalus/elements/void.rb', line 4 def width @width end |
Class Method Details
.description ⇒ Object
7 8 9 |
# File 'lib/dedalus/elements/void.rb', line 7 def self.description 'an empty space' end |
.example_data ⇒ Object
11 12 13 |
# File 'lib/dedalus/elements/void.rb', line 11 def self.example_data { width: 300, height: 300 } end |
Instance Method Details
#render ⇒ Object
5 |
# File 'lib/dedalus/elements/void.rb', line 5 def render(*); end |