Class: Jsapi::JSON::Null

Inherits:
Value
  • Object
show all
Defined in:
lib/jsapi/json/null.rb

Overview

Represents null.

Instance Attribute Summary

Attributes inherited from Value

#schema

Instance Method Summary collapse

Methods inherited from Value

#initialize, #validate

Constructor Details

This class inherits a constructor from Jsapi::JSON::Value

Instance Method Details

#empty?Boolean

Returns true.

Returns:



9
10
11
# File 'lib/jsapi/json/null.rb', line 9

def empty?
  true
end

#inspectObject

:nodoc:



13
14
15
# File 'lib/jsapi/json/null.rb', line 13

def inspect # :nodoc:
  "#<#{self.class}>"
end

#null?Boolean

Returns true.

Returns:



18
19
20
# File 'lib/jsapi/json/null.rb', line 18

def null?
  true
end

#valueObject



22
23
24
# File 'lib/jsapi/json/null.rb', line 22

def value
  nil
end