Class: Hexpress::Nested::Find

Inherits:
Object
  • Object
show all
Includes:
Hexpress::Nested
Defined in:
lib/hexpress/nested/find.rb,
lib/hexpress/verbal_expressions.rb

Instance Attribute Summary

Attributes included from Wrapped

#close

Instance Method Summary collapse

Methods included from Hexpress::Nested

#delimiter, #hexpression, #to_s

Methods included from Wrapped

#wrapping

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

#openObject



41
42
43
# File 'lib/hexpress/verbal_expressions.rb', line 41

def open
  "(?:"
end