Class: Adapters::Default
- Inherits:
-
Object
- Object
- Adapters::Default
- Defined in:
- lib/ducalis/adapters/default.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(value) ⇒ Default
constructor
A new instance of Default.
Constructor Details
#initialize(value) ⇒ Default
Returns a new instance of Default.
9 10 11 |
# File 'lib/ducalis/adapters/default.rb', line 9 def initialize(value) @value = value end |
Class Method Details
.suitable_for?(_value) ⇒ Boolean
5 6 7 |
# File 'lib/ducalis/adapters/default.rb', line 5 def self.suitable_for?(_value) true end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/ducalis/adapters/default.rb', line 13 def call @value.split('#') end |