--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Removes trailing whitespace from str, returning nil if no change was made. See also String#lstrip! and String#strip!. - !ruby/struct:SM::Flow::VERB body: " " hello ".rstrip #=> " hello"\n "hello".rstrip! #=> nil\n" full_name: String#rstrip! is_singleton: false name: rstrip! params: | str.rstrip! => self or nil visibility: public