Module: VV::StringMethods::SharedInstanceAndClassMethods
- Defined in:
- lib/vv/string_methods.rb
Instance Method Summary collapse
- #colon ⇒ Object
- #comma ⇒ 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
78 79 80 |
# File 'lib/vv/string_methods.rb', line 78 def colon ":" end |
#comma ⇒ Object
70 71 72 |
# File 'lib/vv/string_methods.rb', line 70 def comma "," end |
#dash ⇒ Object
62 63 64 |
# File 'lib/vv/string_methods.rb', line 62 def dash "-" end |
#empty_string ⇒ Object
54 55 56 |
# File 'lib/vv/string_methods.rb', line 54 def empty_string "" end |
#equals_sign ⇒ Object
66 67 68 |
# File 'lib/vv/string_methods.rb', line 66 def equals_sign "=" end |
#forward_slash ⇒ Object
58 59 60 |
# File 'lib/vv/string_methods.rb', line 58 def forward_slash "/" end |
#newline ⇒ Object
90 91 92 |
# File 'lib/vv/string_methods.rb', line 90 def newline "\n" end |
#period ⇒ Object
74 75 76 |
# File 'lib/vv/string_methods.rb', line 74 def period "." end |
#safe_filename_characters ⇒ Object
See: ‘safe_filename?` and `safe_path?` methods
95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/vv/string_methods.rb', line 95 def safe_filename_characters numbers = '0-9' lowercase = 'a-z' uppercase = 'A-Z' [ dash, numbers, lowercase, uppercase, underscore_character, period ].join end |
#space ⇒ Object
86 87 88 |
# File 'lib/vv/string_methods.rb', line 86 def space " " end |
#underscore_character ⇒ Object
82 83 84 |
# File 'lib/vv/string_methods.rb', line 82 def underscore_character "_" end |