Class: GiftWrap::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gift_wrap/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
# File 'lib/gift_wrap/configuration.rb', line 6

def initialize
  @use_serializers = !!defined?(ActiveModel)
end

Instance Attribute Details

#use_serializersObject

Returns the value of attribute use_serializers.



4
5
6
# File 'lib/gift_wrap/configuration.rb', line 4

def use_serializers
  @use_serializers
end

Instance Method Details

#use_serializers?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/gift_wrap/configuration.rb', line 10

def use_serializers?
  @use_serializers
end