Class: RubyGrep::Expression
- Inherits:
-
Object
- Object
- RubyGrep::Expression
- Defined in:
- lib/ruby-grep/expression.rb
Instance Method Summary collapse
-
#initialize(expression) ⇒ Expression
constructor
A new instance of Expression.
- #value ⇒ Object
Constructor Details
#initialize(expression) ⇒ Expression
Returns a new instance of Expression.
5 6 7 |
# File 'lib/ruby-grep/expression.rb', line 5 def initialize(expression) @expression = parse_expression(expression) end |
Instance Method Details
#value ⇒ Object
9 10 11 |
# File 'lib/ruby-grep/expression.rb', line 9 def value @expression end |