Class: Regexp

Inherits:
Object
  • Object
show all
Defined in:
lib/exceptional/monkeypatches.rb

Instance Method Summary collapse

Instance Method Details

#to_json(options = {}) ⇒ Object



2
3
4
# File 'lib/exceptional/monkeypatches.rb', line 2

def to_json(options = {})
  "\"#{self.to_s}\""
end