Module: VV::StringMethods::SharedInstanceAndClassMethods
- Defined in:
- lib/vv/string_methods.rb
Instance Method Summary collapse
- #colon ⇒ Object
- #dash ⇒ Object
- #empty_string ⇒ Object
- #equals_sign ⇒ Object
- #forward_slash ⇒ Object
- #newline ⇒ Object
- #period ⇒ Object
-
#safe_filename_characters ⇒ Object
See: ‘safe_filename?` and `safe_path?` methods.
- #space ⇒ Object
- #underscore_character ⇒ Object
Instance Method Details
#colon ⇒ Object
68 69 70 |
# File 'lib/vv/string_methods.rb', line 68 def colon ":" end |
#dash ⇒ Object
56 57 58 |
# File 'lib/vv/string_methods.rb', line 56 def dash "-" end |
#empty_string ⇒ Object
48 49 50 |
# File 'lib/vv/string_methods.rb', line 48 def empty_string "" end |
#equals_sign ⇒ Object
60 61 62 |
# File 'lib/vv/string_methods.rb', line 60 def equals_sign "=" end |
#forward_slash ⇒ Object
52 53 54 |
# File 'lib/vv/string_methods.rb', line 52 def forward_slash "/" end |
#newline ⇒ Object
80 81 82 |
# File 'lib/vv/string_methods.rb', line 80 def newline "\n" end |
#period ⇒ Object
64 65 66 |
# File 'lib/vv/string_methods.rb', line 64 def period "." end |
#safe_filename_characters ⇒ Object
See: ‘safe_filename?` and `safe_path?` methods
85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/vv/string_methods.rb', line 85 def safe_filename_characters numbers = '0-9' lowercase = 'a-z' uppercase = 'A-Z' [ dash, numbers, lowercase, uppercase, underscore_character, period ].join end |
#space ⇒ Object
76 77 78 |
# File 'lib/vv/string_methods.rb', line 76 def space " " end |
#underscore_character ⇒ Object
72 73 74 |
# File 'lib/vv/string_methods.rb', line 72 def underscore_character "_" end |