Sha256: 4df2618fec4e5786aa071bd9e90ae82af189c1c1e2674ac3e080f2e3fb7816cd

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

module Chat
  class DotCommand
    class Shrug
      attr_reader :message, :text

      def initialize(message, text)
        @message = message
        @text = text
      end

      def perform
        message.text =
          if text.blank?
            shruggie
          else
            "#{text} #{shruggie}"
          end
      end

      private

      def shruggie
        "¯\\_(ツ)_/¯"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chat-0.2.0 app/models/chat/dot_command/shrug.rb