Class: TC_JSONAddition::C

Inherits:
Object show all
Defined in:
lib/crazy_ivan/vendor/json-1.1.7/tests/test_json_addition.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.json_creatable?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/crazy_ivan/vendor/json-1.1.7/tests/test_json_addition.rb', line 52

def self.json_creatable?
  false
end

Instance Method Details

#to_json(*args) ⇒ Object



56
57
58
59
60
# File 'lib/crazy_ivan/vendor/json-1.1.7/tests/test_json_addition.rb', line 56

def to_json(*args)
  {
    'json_class'  => 'TC_JSONAddition::Nix',
  }.to_json(*args)
end