Class: Regexp

Inherits:
Object show all
Defined in:
lib/to-javascript/encoders/regexp.rb

Instance Method Summary collapse

Instance Method Details

#to_js(options = nil) ⇒ Object

:nodoc:



2
3
4
# File 'lib/to-javascript/encoders/regexp.rb', line 2

def to_js(options = nil) #:nodoc:
  ActiveSupport::JS::Code.new to_json(options)
end