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)


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

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)


15
16
17
# File 'lib/somemoji/emoji_extractors/base_emoji_extractor.rb', line 15

def extract
  raise ::NotImplementedError
end