Module: StrokeDB::ImmutableDocument

Defined in:
lib/strokedb/document.rb

Overview

ImmutableDocument can’t be saved It should not be used directly, use Document#make_immutable! instead

Instance Method Summary collapse

Instance Method Details

#make_mutable!Object



789
790
791
# File 'lib/strokedb/document.rb', line 789

def make_mutable!
  unextend(ImmutableDocument)
end

#mutable?Boolean

Returns:

  • (Boolean)


781
782
783
# File 'lib/strokedb/document.rb', line 781

def mutable?
  false
end

#save!Object



785
786
787
# File 'lib/strokedb/document.rb', line 785

def save!
  self
end