Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/houdinirx/string.rb
Instance Method Summary collapse
Instance Method Details
#hmatch(options = nil, &block) ⇒ Object
2 3 4 5 6 |
# File 'lib/houdinirx/string.rb', line 2 def hmatch(=nil, &block) regex_helper = Houdini::RegexHelper.new() regex_helper.instance_eval(&block) regex_helper.match(self) end |
#hscan(options = nil, &block) ⇒ Object
8 9 10 11 12 |
# File 'lib/houdinirx/string.rb', line 8 def hscan(=nil, &block) regex_helper = Houdini::RegexHelper.new() regex_helper.instance_eval(&block) regex_helper.scan(self) end |