Class: Randexp
- Inherits:
-
Object
- Object
- Randexp
- Defined in:
- lib/randexp.rb,
lib/randexp/parser.rb,
lib/randexp/reducer.rb,
lib/randexp/version.rb
Defined Under Namespace
Classes: Dictionary, Parser, Reducer
Constant Summary collapse
- VERSION =
"0.1.7"
Instance Attribute Summary collapse
-
#sexp ⇒ Object
Returns the value of attribute sexp.
Instance Method Summary collapse
-
#initialize(source) ⇒ Randexp
constructor
A new instance of Randexp.
- #reduce ⇒ Object
Constructor Details
Instance Attribute Details
#sexp ⇒ Object
Returns the value of attribute sexp.
2 3 4 |
# File 'lib/randexp.rb', line 2 def sexp @sexp end |
Instance Method Details
#reduce ⇒ Object
8 9 10 |
# File 'lib/randexp.rb', line 8 def reduce Reducer[@sexp.dup] end |