Parent

RSpec::Support::EncodedString

@private

Attributes

source_encoding[R]

Public Class Methods

new(string, encoding = nil) click to toggle source
# File lib/rspec/support/encoded_string.rb, line 8
def initialize(string, encoding = nil)
  @encoding = encoding
  @source_encoding = detect_source_encoding(string)
  @string = matching_encoding(string)
end

Public Instance Methods

<<(string) click to toggle source
# File lib/rspec/support/encoded_string.rb, line 20
def <<(string)
  @string << matching_encoding(string)
end
split(regex_or_string) click to toggle source
# File lib/rspec/support/encoded_string.rb, line 24
def split(regex_or_string)
  @string.split(matching_encoding(regex_or_string))
end
to_s() click to toggle source
# File lib/rspec/support/encoded_string.rb, line 28
def to_s
  @string
end
Also aliased as: to_str
to_str() click to toggle source
Alias for: to_s

[Validate]

Generated with the Darkfish Rdoc Generator 2.