Class: Pact::Matchers::UnixDiffFormatter::RegexpDecorator
- Inherits:
-
Object
- Object
- Pact::Matchers::UnixDiffFormatter::RegexpDecorator
- Defined in:
- lib/pact/matchers/unix_diff_formatter.rb
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(regexp) ⇒ RegexpDecorator
constructor
A new instance of RegexpDecorator.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(regexp) ⇒ RegexpDecorator
Returns a new instance of RegexpDecorator.
140 141 142 |
# File 'lib/pact/matchers/unix_diff_formatter.rb', line 140 def initialize regexp @regexp = regexp end |
Instance Method Details
#as_json ⇒ Object
148 149 150 |
# File 'lib/pact/matchers/unix_diff_formatter.rb', line 148 def as_json @regexp.inspect end |
#to_json(options = {}) ⇒ Object
144 145 146 |
# File 'lib/pact/matchers/unix_diff_formatter.rb', line 144 def to_json = {} @regexp.inspect end |