Class: Object

Inherits:
BasicObject
Defined in:
lib/crudboy/ext/object.rb

Instance Method Summary collapse

Instance Method Details

#aObject



19
20
21
# File 'lib/crudboy/ext/object.rb', line 19

def a
  [self]
end

#jObject



3
4
5
# File 'lib/crudboy/ext/object.rb', line 3

def j
  to_json
end

#jjObject



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

def jj
  JSON.pretty_generate(JSON.parse(to_json))
end

#jjpObject



15
16
17
# File 'lib/crudboy/ext/object.rb', line 15

def jjp
  puts jj
end

#jpObject



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

def jp
  puts j
end