Module: VV::StringMethods::SharedInstanceAndClassMethods

Defined in:
lib/vv/string_methods.rb

Instance Method Summary collapse

Instance Method Details

#colonObject



68
69
70
# File 'lib/vv/string_methods.rb', line 68

def colon
  ":"
end

#dashObject



56
57
58
# File 'lib/vv/string_methods.rb', line 56

def dash
  "-"
end

#empty_stringObject



48
49
50
# File 'lib/vv/string_methods.rb', line 48

def empty_string
  ""
end

#equals_signObject



60
61
62
# File 'lib/vv/string_methods.rb', line 60

def equals_sign
  "="
end

#forward_slashObject



52
53
54
# File 'lib/vv/string_methods.rb', line 52

def forward_slash
  "/"
end

#newlineObject



80
81
82
# File 'lib/vv/string_methods.rb', line 80

def newline
  "\n"
end

#periodObject



64
65
66
# File 'lib/vv/string_methods.rb', line 64

def period
  "."
end

#safe_filename_charactersObject

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

#spaceObject



76
77
78
# File 'lib/vv/string_methods.rb', line 76

def space
  " "
end

#underscore_characterObject



72
73
74
# File 'lib/vv/string_methods.rb', line 72

def underscore_character
  "_"
end