Class: WhirledPeas::Settings::GridSettings
Instance Attribute Summary collapse
Instance Method Summary
collapse
#align, #align=, #align_around?, #align_between?, #align_center?, #align_evenly?, #align_left?, #align_right?, #border, #border_sizing?, #content_sizing?, #content_start, #flow, #flow=, #forward_flow?, #full_border, #horizontal_flow?, #inherit, #margin, #padding, #reverse_flow?, #scrollbar, #set_border, #set_content_start, #set_margin, #set_padding, #sizing, #valign, #valign=, #valign_around?, #valign_between?, #valign_bottom?, #valign_evenly?, #valign_middle?, #valign_top?, #vertical_flow?
Instance Attribute Details
#num_cols ⇒ Object
Returns the value of attribute num_cols.
8
9
10
|
# File 'lib/whirled_peas/settings/grid_settings.rb', line 8
def num_cols
@num_cols
end
|
Instance Method Details
17
18
19
|
# File 'lib/whirled_peas/settings/grid_settings.rb', line 17
def set_scrollbar(*)
raise NotImplementedError, 'Grids do not support scrollbars'
end
|
#sizing= ⇒ Object
21
22
23
|
# File 'lib/whirled_peas/settings/grid_settings.rb', line 21
def sizing=(*)
raise NotImplementedError, 'Grids only support the default sizing model'
end
|
#validate! ⇒ Object
10
11
12
13
14
15
|
# File 'lib/whirled_peas/settings/grid_settings.rb', line 10
def validate!
super
if num_cols.nil? || num_cols <= 0
raise SettingsError, "`num_cols` must be set to a positive number for GridSettings"
end
end
|