Method: PObject.allow_missing

Defined in:
lib/pobject/pobject.rb

.allow_missingObject

When ‘allow_missing` is called at the inheriting class level, then all calls to any missing attribute will return `nil` and supress the normal ruby behavior of raising a `NoMethodError`.



8
9
10
11
12
# File 'lib/pobject/pobject.rb', line 8

def self.allow_missing
  send :define_method, :allow_missing? do
    true
  end
end