Class: Moguro::Types::Nil

Inherits:
Base
  • Object
show all
Defined in:
lib/moguro/types/nil.rb

Overview

NilClass Wrapper

Since:

  • 0.0.1

Instance Method Summary collapse

Instance Method Details

#typeObject

Since:

  • 0.0.1



13
14
15
# File 'lib/moguro/types/nil.rb', line 13

def type
  'nil'
end

#valid?(p) ⇒ Boolean

Returns:

Since:

  • 0.0.1



9
10
11
# File 'lib/moguro/types/nil.rb', line 9

def valid?(p)
  p.nil?
end