Class: Drillbit::Tokens::Null

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/drillbit/tokens/null.rb

Direct Known Subclasses

Base64s::Null, JsonWebTokens::Null

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/drillbit/tokens/null.rb', line 14

def blank?
  true
end

#to_hObject



18
19
20
# File 'lib/drillbit/tokens/null.rb', line 18

def to_h
  [{}, {}]
end

#to_sObject



22
23
24
# File 'lib/drillbit/tokens/null.rb', line 22

def to_s
  ''
end

#valid?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/drillbit/tokens/null.rb', line 10

def valid?
  true
end