Class: WhirledPeas::Settings::Sizing
- Inherits:
-
Object
- Object
- WhirledPeas::Settings::Sizing
- Defined in:
- lib/whirled_peas/settings/sizing.rb
Constant Summary collapse
- CONTENT =
:content
- BORDER =
:border
- DEFAULT =
CONTENT
Class Method Summary collapse
Class Method Details
.validate!(sizing) ⇒ Object
12 13 14 15 16 |
# File 'lib/whirled_peas/settings/sizing.rb', line 12 def self.validate!(sizing) return if sizing.nil? return sizing if VALID.include?(sizing) raise ArgumentError, "Unsupported sizing model: #{sizing.inspect}" end |