Module: VV::StringMethods::SharedInstanceAndClassMethods
- Defined in:
- lib/vv/string_methods.rb
Instance Method Summary collapse
- #dash ⇒ Object
- #empty_string ⇒ Object
- #forward_slash ⇒ Object
- #newline ⇒ Object
- #period ⇒ Object
-
#safe_filename_characters ⇒ Object
See:
safe_filename?andsafe_path?methods. - #underscore_character ⇒ Object
Instance Method Details
#dash ⇒ Object
46 47 48 |
# File 'lib/vv/string_methods.rb', line 46 def dash "-" end |
#empty_string ⇒ Object
38 39 40 |
# File 'lib/vv/string_methods.rb', line 38 def empty_string "" end |
#forward_slash ⇒ Object
42 43 44 |
# File 'lib/vv/string_methods.rb', line 42 def forward_slash "/" end |
#newline ⇒ Object
58 59 60 |
# File 'lib/vv/string_methods.rb', line 58 def newline "\n" end |
#period ⇒ Object
50 51 52 |
# File 'lib/vv/string_methods.rb', line 50 def period "." end |
#safe_filename_characters ⇒ Object
See: safe_filename? and safe_path? methods
63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/vv/string_methods.rb', line 63 def safe_filename_characters numbers = '0-9' lowercase = 'a-z' uppercase = 'A-Z' [ dash, numbers, lowercase, uppercase, underscore_character, period ].join end |
#underscore_character ⇒ Object
54 55 56 |
# File 'lib/vv/string_methods.rb', line 54 def underscore_character "_" end |