class Addic7ed::Addic7edCommentNormalizer
Attributes
comment[R]
Public Class Methods
call(comment)
click to toggle source
# File lib/addic7ed/services/addic7ed_comment_normalizer.rb, line 9 def self.call(comment) new(comment).call end
new(comment)
click to toggle source
# File lib/addic7ed/services/addic7ed_comment_normalizer.rb, line 5 def initialize(comment) @comment = comment || "" end
Public Instance Methods
call()
click to toggle source
# File lib/addic7ed/services/addic7ed_comment_normalizer.rb, line 13 def call comment.downcase end