Class: Ckeditor::Utils::JavascriptCode

Inherits:
String
  • Object
show all
Defined in:
lib/ckeditor/utils.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object



11
12
13
# File 'lib/ckeditor/utils.rb', line 11

def as_json(options = nil)
  ActiveSupport::JSON::Variable.new(to_s).freeze
end

#to_json(options = nil) ⇒ Object



7
8
9
# File 'lib/ckeditor/utils.rb', line 7

def to_json(options = nil)
  self
end