Module: RandallMonkey::RandableRegexp

Defined in:
lib/randall/monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#randObject

Generate a String that matches the receiver.



17
18
19
20
# File 'lib/randall/monkey_patch.rb', line 17

def rand
  @randall ||= Randall.new(String, :like => self)
  @randall.next
end