Module: SimpleAMS::Options::Concerns::TrackedProperties

Included in:
SimpleAMS::Options
Defined in:
lib/simple_ams/options/concerns/tracked_properties.rb

Defined Under Namespace

Classes: Tracked

Instance Method Summary collapse

Instance Method Details

#clean_volatile_properties!Object



15
16
17
# File 'lib/simple_ams/options/concerns/tracked_properties.rb', line 15

def clean_volatile_properties!
  @tracked_properties = @tracked_properties.reject { |_k, v| v.volatile? }
end

#initialize_tracking!Object



11
12
13
# File 'lib/simple_ams/options/concerns/tracked_properties.rb', line 11

def initialize_tracking!
  @tracked_properties = {}
end

#tracked(meth) ⇒ Object



19
20
21
# File 'lib/simple_ams/options/concerns/tracked_properties.rb', line 19

def tracked(meth)
  @tracked_properties[meth] ||= Tracked.new
end