Class: Somemoji::EmojiExtractors::BaseEmojiExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/somemoji/emoji_extractors/base_emoji_extractor.rb

Instance Method Summary collapse

Constructor Details

#initialize(format: nil, destination:, silence: nil, size: nil) ⇒ BaseEmojiExtractor

Returns a new instance of BaseEmojiExtractor.

Parameters:

  • destination (String)
  • format (String) (defaults to: nil)
  • silence (Boolean) (defaults to: nil)
  • size (Integer, nil) (defaults to: nil)

10
11
12
13
14
15
# File 'lib/somemoji/emoji_extractors/base_emoji_extractor.rb', line 10

def initialize(format: nil, destination:, silence: nil, size: nil)
  @destination = destination
  @format = format || "png"
  @silence = silence || false
  @size = size
end

Instance Method Details

#extractObject

Raises:

  • (::NotImplementedError)

17
18
19
# File 'lib/somemoji/emoji_extractors/base_emoji_extractor.rb', line 17

def extract
  raise ::NotImplementedError
end