Class: Dedalus::Elements::Void

Inherits:
Atom show all
Defined in:
lib/dedalus/elements/void.rb

Instance Attribute Summary collapse

Attributes inherited from Atom

#padding, #scale

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

#heightObject

Returns the value of attribute height.



4
5
6
# File 'lib/dedalus/elements/void.rb', line 4

def height
  @height
end

#widthObject

Returns the value of attribute width.



4
5
6
# File 'lib/dedalus/elements/void.rb', line 4

def width
  @width
end

Class Method Details

.descriptionObject



7
8
9
# File 'lib/dedalus/elements/void.rb', line 7

def self.description
  'an empty space'
end

.example_dataObject



11
12
13
# File 'lib/dedalus/elements/void.rb', line 11

def self.example_data
  { width: 300, height: 300 }
end

Instance Method Details

#renderObject



5
# File 'lib/dedalus/elements/void.rb', line 5

def render(*); end