Method: Randexp#initialize
- Defined in:
- lib/randexp.rb
#initialize(source) ⇒ Randexp
Returns a new instance of Randexp.
4 5 6 |
# File 'lib/randexp.rb', line 4 def initialize(source) @sexp = Randexp::Parser[source] end |
Returns a new instance of Randexp.
4 5 6 |
# File 'lib/randexp.rb', line 4 def initialize(source) @sexp = Randexp::Parser[source] end |