Class: NilClass
Instance Method Summary collapse
Instance Method Details
#default!(default_value) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/qualitysmith_extensions/object/default.rb', line 22 def default!(default_value) #self.become default_value #self.replace default_value #self = default_value # Not sure how to implemnet this! ... without writing/using a C extension that lets me turn a NilClass object into another object. end |