class SimpleRewriter::Rewriters::StringRewriter
Public Instance Methods
generate()
click to toggle source
Calls superclass method
SimpleRewriter::Rewriters::Base#generate
# File lib/simple_rewriter/rewriters/string_rewriter.rb, line 4 def generate return super if any_option_passed? random_text end
Private Instance Methods
random_text()
click to toggle source
# File lib/simple_rewriter/rewriters/string_rewriter.rb, line 15 def random_text "#{random_hex(5)}-#{Faker::Quote.famous_last_words}" end
scoped_options()
click to toggle source
# File lib/simple_rewriter/rewriters/string_rewriter.rb, line 11 def scoped_options REGISTERED_OPTIONS - [:deep] end