Class: Plyushkin::NilValue

Inherits:
Object
  • Object
show all
Defined in:
lib/plyushkin/nil_value.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object



2
3
4
# File 'lib/plyushkin/nil_value.rb', line 2

def method_missing(sym, *args)
  return nil
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/plyushkin/nil_value.rb', line 6

def valid?
  true
end