Class: GiftWrap::Configuration
- Inherits:
-
Object
- Object
- GiftWrap::Configuration
- Defined in:
- lib/gift_wrap/configuration.rb
Instance Attribute Summary collapse
-
#use_serializers ⇒ Object
Returns the value of attribute use_serializers.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #use_serializers? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
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_serializers ⇒ Object
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
10 11 12 |
# File 'lib/gift_wrap/configuration.rb', line 10 def use_serializers? @use_serializers end |