Class: SimpleAMS::Options::Concerns::TrackedProperties::Tracked

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_ams/options/concerns/tracked_properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/simple_ams/options/concerns/tracked_properties.rb', line 3

def value
  @value
end

Instance Method Details

#volatile?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
# File 'lib/simple_ams/options/concerns/tracked_properties.rb', line 4

def volatile?
  return @volatile if defined?(@volatile)

  @volatile ||= value.volatile?
end