Module: VV::StringMethods::SharedInstanceAndClassMethods

Defined in:
lib/vv/string_methods.rb

Instance Method Summary collapse

Instance Method Details

#colonObject



78
79
80
# File 'lib/vv/string_methods.rb', line 78

def colon
  ":"
end

#commaObject



70
71
72
# File 'lib/vv/string_methods.rb', line 70

def comma
  ","
end

#dashObject



62
63
64
# File 'lib/vv/string_methods.rb', line 62

def dash
  "-"
end

#empty_stringObject



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

def empty_string
  ""
end

#equals_signObject



66
67
68
# File 'lib/vv/string_methods.rb', line 66

def equals_sign
  "="
end

#forward_slashObject



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

def forward_slash
  "/"
end

#newlineObject



90
91
92
# File 'lib/vv/string_methods.rb', line 90

def newline
  "\n"
end

#periodObject



74
75
76
# File 'lib/vv/string_methods.rb', line 74

def period
  "."
end

#safe_filename_charactersObject

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

#spaceObject



86
87
88
# File 'lib/vv/string_methods.rb', line 86

def space
  " "
end

#underscore_characterObject



82
83
84
# File 'lib/vv/string_methods.rb', line 82

def underscore_character
  "_"
end