Class: AssetSync::Config::FogPublicValue Private

Inherits:
Object
  • Object
show all
Defined in:
lib/asset_sync/config.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(val) ⇒ FogPublicValue

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of FogPublicValue.



355
356
357
# File 'lib/asset_sync/config.rb', line 355

def initialize(val)
  @value = val
end

Instance Method Details

#to_boolObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



363
364
365
# File 'lib/asset_sync/config.rb', line 363

def to_bool
  !@value.nil?
end

#use_explicit_value?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


359
360
361
# File 'lib/asset_sync/config.rb', line 359

def use_explicit_value?
  @value.to_s != "default"
end