Class: TC_JSONRails::B

Inherits:
Object show all
Defined in:
lib/vendor/json_pure/tests/test_json_rails.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.json_creatable?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/vendor/json_pure/tests/test_json_rails.rb', line 40

def self.json_creatable?
  false
end

Instance Method Details

#to_json(*args) ⇒ Object



44
45
46
47
48
# File 'lib/vendor/json_pure/tests/test_json_rails.rb', line 44

def to_json(*args)
  {
    'json_class'  => self.class.name,
  }.to_json(*args)
end