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?andsafe_path?methods. - #space ⇒ Object
- #underscore_character ⇒ Object
Instance Method Details
#colon ⇒ Object
72 73 74 |
# File 'lib/vv/string_methods.rb', line 72 def colon ":" end |
#comma ⇒ Object
64 65 66 |
# File 'lib/vv/string_methods.rb', line 64 def comma "," 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
84 85 86 |
# File 'lib/vv/string_methods.rb', line 84 def newline "\n" end |
#period ⇒ Object
68 69 70 |
# File 'lib/vv/string_methods.rb', line 68 def period "." end |
#safe_filename_characters ⇒ Object
See: safe_filename? and safe_path? methods
89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/vv/string_methods.rb', line 89 def safe_filename_characters numbers = '0-9' lowercase = 'a-z' uppercase = 'A-Z' [ dash, numbers, lowercase, uppercase, underscore_character, period ].join end |
#space ⇒ Object
80 81 82 |
# File 'lib/vv/string_methods.rb', line 80 def space " " end |
#underscore_character ⇒ Object
76 77 78 |
# File 'lib/vv/string_methods.rb', line 76 def underscore_character "_" end |