This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
class Message | |
def initialize(content) | |
@content = content | |
end | |
def balanced? | |
return false unless allowed_string?(@content) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HTTP status code to symbols for Rails 💎 | |
# 1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing | |
# 2xx Success | |
200 :ok | |
201 :created |