Class: Wisper::ValueObjects::Prefix Private
- Inherits:
-
String
- Object
- String
- Wisper::ValueObjects::Prefix
- Defined in:
- lib/wisper/value_objects/prefix.rb
Overview
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.
Prefix for notifications
Class Attribute Summary collapse
- .default ⇒ Object private
Instance Method Summary collapse
- #initialize(value = nil) ⇒ undefined constructor private
Constructor Details
#initialize(value = nil) ⇒ undefined
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.
17 18 19 20 |
# File 'lib/wisper/value_objects/prefix.rb', line 17 def initialize(value = nil) super "#{ (value == true) ? default : value }_" replace "" if self == "_" end |
Class Attribute Details
.default ⇒ Object
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.
11 12 13 |
# File 'lib/wisper/value_objects/prefix.rb', line 11 def default @default end |