Class: TC_JSONRails::B

Inherits:
Object show all
Defined in:
lib/crazy_ivan/vendor/json-1.1.7/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/crazy_ivan/vendor/json-1.1.7/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/crazy_ivan/vendor/json-1.1.7/tests/test_json_rails.rb', line 44

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