Module: VV::StringMethods::SharedInstanceAndClassMethods

Defined in:
lib/vv/string_methods.rb

Instance Method Summary collapse

Instance Method Details

#dashObject



46
47
48
# File 'lib/vv/string_methods.rb', line 46

def dash
  "-"
end

#empty_stringObject



38
39
40
# File 'lib/vv/string_methods.rb', line 38

def empty_string
  ""
end

#forward_slashObject



42
43
44
# File 'lib/vv/string_methods.rb', line 42

def forward_slash
  "/"
end

#newlineObject



58
59
60
# File 'lib/vv/string_methods.rb', line 58

def newline
  "\n"
end

#periodObject



50
51
52
# File 'lib/vv/string_methods.rb', line 50

def period
  "."
end

#safe_filename_charactersObject

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_characterObject



54
55
56
# File 'lib/vv/string_methods.rb', line 54

def underscore_character
  "_"
end