Class: Adapters::Default

Inherits:
Object
  • Object
show all
Defined in:
lib/ducalis/adapters/default.rb

Class Method Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Boolean)


5
6
7
# File 'lib/ducalis/adapters/default.rb', line 5

def self.suitable_for?(_value)
  true
end

Instance Method Details

#callObject



13
14
15
# File 'lib/ducalis/adapters/default.rb', line 13

def call
  @value.split('#')
end