Class: Papercat::Javascript

Inherits:
Document
  • Object
show all
Defined in:
app/models/papercat/javascript.rb

Instance Method Summary collapse

Methods inherited from Document

at, get, #set

Instance Method Details

#as_json(options = {}) ⇒ Object



11
12
13
# File 'app/models/papercat/javascript.rb', line 11

def as_json options = {}
  super(options.update(methods: [:pathname, :source], except: [:data]))
end