Module: ButtonHelper
- Defined in:
- lib/button_helper.rb,
lib/button_helper/version.rb
Constant Summary collapse
- VERSION =
"0.0.5"
Class Method Summary collapse
Class Method Details
.btn_class(status) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/button_helper.rb', line 4 def self.btn_class(status) if status == "progress" 'button progress' elsif status == "success" 'button success' elsif status == "failure" 'button failure' else '' end end |