Class: Svnx::StringUtil
- Inherits:
-
Object
- Object
- Svnx::StringUtil
- Defined in:
- lib/svnx/util/strutil.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.with_dashes(x) ⇒ Object
7 8 9 |
# File 'lib/svnx/util/strutil.rb', line 7 def with_dashes x x.to_s.gsub "_", "-" end |
.with_underscores(x) ⇒ Object
11 12 13 |
# File 'lib/svnx/util/strutil.rb', line 11 def with_underscores x x.to_s.gsub "-", "_" end |
Instance Method Details
#to_boolean ⇒ Object
16 17 18 |
# File 'lib/svnx/util/strutil.rb', line 16 def to_boolean downcase == "true" end |