Class: Object

Inherits:
BasicObject
Includes:
RedGrape::Pipe::Underscore
Defined in:
lib/ext/object_ext.rb

Instance Method Summary collapse

Methods included from RedGrape::Pipe::Underscore

#_

Instance Method Details

#pass_through(pipe, context) ⇒ Object



7
8
9
# File 'lib/ext/object_ext.rb', line 7

def pass_through(pipe, context)
  pipe.pass self, context
end

#to_pretty_jsonObject



11
12
13
# File 'lib/ext/object_ext.rb', line 11

def to_pretty_json
  JSON.pretty_generate self
end