Class: Xampl::MarkChangedDeep

Inherits:
Visitor
  • Object
show all
Defined in:
lib/xamplr/visitors.rb

Instance Attribute Summary

Attributes inherited from Visitor

#done, #no_children, #no_siblings

Instance Method Summary collapse

Methods inherited from Visitor

#after_visit, #around_visit, #cycle, #method_missing, #reset, #revisit, #short_circuit, #start, #substitute_in_visit, #visit_string

Constructor Details

#initializeMarkChangedDeep

Returns a new instance of MarkChangedDeep.



68
69
70
# File 'lib/xamplr/visitors.rb', line 68

def initialize
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Xampl::Visitor

Instance Method Details

#before_visit(xampl) ⇒ Object



72
73
74
# File 'lib/xamplr/visitors.rb', line 72

def before_visit(xampl)
  xampl.changed if xampl.persist_required
end