class ChatCorrect::Punctuation

Attributes

text[R]

Public Class Methods

new(text:) click to toggle source
# File lib/chat_correct/punctuation.rb, line 4
def initialize(text:)
  @text = text
end

Public Instance Methods

is_punctuation?() click to toggle source
# File lib/chat_correct/punctuation.rb, line 8
def is_punctuation?
  text.gsub(/[[:punct:]]/, '').eql?('') ||
  text.eql?('∫') ||
  text.eql?('∬') ||
  text.eql?('∯') ||
  text.eql?('∮') ||
  text.eql?('ƪ')
end