Class: Hexpress::Nested::Find
- Includes:
- Hexpress::Nested
- Defined in:
- lib/hexpress/nested/find.rb,
lib/hexpress/verbal_expressions.rb
Instance Attribute Summary
Attributes included from Wrapped
Instance Method Summary collapse
-
#initialize(value = nil, &block) ⇒ Find
constructor
A new instance of Find.
- #open ⇒ Object
Methods included from Hexpress::Nested
#delimiter, #hexpression, #to_s
Methods included from Wrapped
Constructor Details
#initialize(value = nil, &block) ⇒ Find
Returns a new instance of Find.
11 12 13 14 |
# File 'lib/hexpress/nested/find.rb', line 11 def initialize(value = nil, &block) @hexpression = value || Hexpress.new.instance_eval(&block) @open, @close = "(", ")" end |
Instance Method Details
#open ⇒ Object
41 42 43 |
# File 'lib/hexpress/verbal_expressions.rb', line 41 def open "(?:" end |