Sha256: ab0fdad56689310baf6044a50b0783656fcf1eb812714e1c3f93dbb172cde017
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
module Bootstrap module ViewHelpers class ContextualClasses PRIMARY = 'primary'.freeze SECONDARY = 'secondary'.freeze SUCCESS = 'success'.freeze INFO = 'info'.freeze WARNING = 'warning'.freeze DANGER = 'danger'.freeze LIGHT = 'light'.freeze DARK = 'dark'.freeze LINK = 'link'.freeze ALL = [PRIMARY, SECONDARY, SUCCESS, INFO, WARNING, DANGER, LIGHT, DARK, LINK] def self.valid?(style) ALL.include?(style.to_s.freeze) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-view_helpers-0.0.3 | lib/bootstrap/view_helpers/contextual_classes.rb |
bootstrap-view_helpers-0.0.2 | lib/bootstrap/view_helpers/contextual_classes.rb |