Class: MastodonCommand::RandomConverter

Inherits:
Converter
  • Object
show all
Defined in:
lib/mastodon_command/random_converter.rb

Instance Attribute Summary

Attributes inherited from Converter

#pattern, #replaces

Instance Method Summary collapse

Methods inherited from Converter

#initialize, #match

Constructor Details

This class inherits a constructor from MastodonCommand::Converter

Instance Method Details

#convert(input) ⇒ Object



3
4
5
# File 'lib/mastodon_command/random_converter.rb', line 3

def convert(input)
  "#{input}\nあなたの運勢は「#{@replaces.sample}」です"
end