Sha256: 9224c932af71a344ba75c650149654978868d833c180a853ed71e884c682cac5

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

#### Simple Regexp

This example shows a simple ```Regexp```.

```show.rb```:
```ruby
require 'debug_helper'

regexp = Regexp.new(/\w+/)
DebugHelper.show(regexp, 'My simple regexp')
```

The output shows details of the ```Regexp```.

```show.yaml```:
```yaml
---
Regexp (message='My simple regexp'):
  Regexp#to_s: "(?-mix:\\w+)"
  Regexp#casefold?: false
  Regexp#named_captures: {}
  Regexp#encoding: !ruby/encoding US-ASCII
  Regexp#fixed_encoding?: false
```

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
debug_helper-2.1.0 markdown/readme/classes/regexp/simple/show.md
debug_helper-2.0.0 markdown/readme/classes/regexp/simple/show.md