module Mexico::FileSystem::BoundToCorpus

XML bound elements know the corpus object, the corpus file, and the nokogiri element they come from and can write changes back to that file.

Attributes

corpus[RW]

Public Instance Methods

bind_to_corpus(param_corpus) click to toggle source

sets up the bound between the object and the corpus elements

# File lib/mexico/file_system/bound_to_corpus.rb, line 28
def bind_to_corpus(param_corpus)
  @corpus = param_corpus
  
  if self.respond_to?(:when_bound_to_corpus)
    self.when_bound_to_corpus
  end
  
end