Class: TextFSM::Options::Filldown

Inherits:
Base
  • Object
show all
Defined in:
lib/textfsm/options.rb

Instance Attribute Summary

Attributes inherited from Base

#field

Instance Method Summary collapse

Methods inherited from Base

#after_initialize, #before_record, #initialize, #visible?

Constructor Details

This class inherits a constructor from TextFSM::Options::Base

Instance Method Details

#after_assign ⇒ Object



41
42
43
# File 'lib/textfsm/options.rb', line 41

def after_assign
  @saved_value = field.value
end

#after_clear ⇒ Object



45
46
47
# File 'lib/textfsm/options.rb', line 45

def after_clear
  field.value = @saved_value
end

#after_reset ⇒ Object



49
50
51
# File 'lib/textfsm/options.rb', line 49

def after_reset
  @saved_value = nil
end