module VV::StringMethods::ClassMethods

Public Instance Methods

capitals() click to toggle source
# File lib/vv/string_methods.rb, line 30
def capitals
  ("A".."Z").to_a
end
capture_stdout() { || ... } click to toggle source
# File lib/vv/string_methods.rb, line 40
def capture_stdout(&block)
  original_stdout = $stdout
  $stdout = StringIO.new
  yield
  $stdout.string
ensure
  $stdout = original_stdout
end
Also aliased as: get_stdout
get_stdout(&block)
Alias for: capture_stdout
letters() click to toggle source
# File lib/vv/string_methods.rb, line 22
def letters
  ("a".."z").to_a
end
letters_and_numbers(capitals: false) click to toggle source
# File lib/vv/string_methods.rb, line 34
def letters_and_numbers capitals: false
  response  = self.letters
  response += self.capitals if capitals
  response += self.numbers
end
numbers() click to toggle source
# File lib/vv/string_methods.rb, line 26
def numbers
  ("0".."9").to_a
end
vv_included?() click to toggle source
# File lib/vv/string_methods.rb, line 18
def vv_included?
  true
end