Class: SimpleRewriter::Rewriters::StringRewriter
- Defined in:
- lib/simple_rewriter/rewriters/string_rewriter.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from OptionsResolver
#any_option_passed?, #collect_values_from_options, #filtered_options, #resolve_options_with
Methods included from Generators
#date_generator, #default_address, #rand_num, #random_address, #random_city, #random_date, #random_email, #random_first_name, #random_hex, #random_last_name, #random_name, #random_phonenumber, #random_sample_pdf, #random_street, #random_zip, #string_generator
Constructor Details
This class inherits a constructor from SimpleRewriter::Rewriters::Base
Instance Method Details
#generate ⇒ Object
4 5 6 7 |
# File 'lib/simple_rewriter/rewriters/string_rewriter.rb', line 4 def generate return super if any_option_passed? random_text end |