Class: BetterAuth::Endpoint::Result::SetCookieHeader
- Inherits:
-
Array
- Object
- Array
- BetterAuth::Endpoint::Result::SetCookieHeader
- Defined in:
- lib/better_auth/endpoint.rb
Class Method Summary collapse
Instance Method Summary collapse
- #=~(pattern) ⇒ Object
- #include?(value) ⇒ Boolean
- #lines ⇒ Object
- #match ⇒ Object
- #split ⇒ Object
- #to_s ⇒ Object
- #to_str ⇒ Object
Class Method Details
.from(value) ⇒ Object
212 213 214 |
# File 'lib/better_auth/endpoint.rb', line 212 def self.from(value) new(value.lines.map(&:chomp)) end |
Instance Method Details
#=~(pattern) ⇒ Object
230 231 232 |
# File 'lib/better_auth/endpoint.rb', line 230 def =~(pattern) to_s =~ pattern end |
#include?(value) ⇒ Boolean
216 217 218 219 220 |
# File 'lib/better_auth/endpoint.rb', line 216 def include?(value) return super unless value.is_a?(String) any? { |line| line.include?(value) } end |
#lines ⇒ Object
222 223 224 |
# File 'lib/better_auth/endpoint.rb', line 222 def lines self end |
#match ⇒ Object
226 227 228 |
# File 'lib/better_auth/endpoint.rb', line 226 def match(...) to_s.match(...) end |
#split ⇒ Object
234 235 236 |
# File 'lib/better_auth/endpoint.rb', line 234 def split(...) to_s.split(...) end |
#to_s ⇒ Object
238 239 240 |
# File 'lib/better_auth/endpoint.rb', line 238 def to_s join("\n") end |
#to_str ⇒ Object
242 243 244 |
# File 'lib/better_auth/endpoint.rb', line 242 def to_str to_s end |