Module: GBDev::Utils::PrivateMethods
Instance Method Summary collapse
-
#build_random_file_name ⇒ Object
:nodoc:.
-
#build_random_string ⇒ Object
:nodoc:.
Instance Method Details
#build_random_file_name ⇒ Object
:nodoc:
12 13 14 |
# File 'lib/pdf_filler/util_methods.rb', line 12 def build_random_file_name # :nodoc: build_random_string << '.pdf' end |
#build_random_string ⇒ Object
:nodoc:
7 8 9 10 |
# File 'lib/pdf_filler/util_methods.rb', line 7 def build_random_string # :nodoc: letters_array = [('a'..'z'),('A'..'Z')].collect{|i| i.to_a}.flatten (1..10).collect{ letters_array[ rand(letters_array.length) ] }.join end |