관리-도구
편집 파일: %3c%3d%3e-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Comparison---Returns -1 if <em>other_str</em> is less than, 0 if <em>other_str</em> is equal to, and +1 if <em>other_str</em> is greater than <em>str</em>. If the strings are of different lengths, and the strings are equal when compared up to the shortest length, then the longer string is considered greater than the shorter one. If the variable <tt>$=</tt> is <tt>false</tt>, the comparison is based on comparing the binary values of each character in the string. In older versions of Ruby, setting <tt>$=</tt> allowed case-insensitive comparisons; this is now deprecated in favor of using <tt>String#casecmp</tt>. - !ruby/struct:SM::Flow::P body: <tt><=></tt> is the basis for the methods <tt><</tt>, <tt><=</tt>, <tt>></tt>, <tt>>=</tt>, and <tt>between?</tt>, included from module <tt>Comparable</tt>. The method <tt>String#==</tt> does not use <tt>Comparable#==</tt>. - !ruby/struct:SM::Flow::VERB body: " "abcdef" <=> "abcde" #=> 1\n "abcdef" <=> "abcdef" #=> 0\n "abcdef" <=> "abcdefg" #=> -1\n "abcdef" <=> "ABCDEF" #=> 1\n" full_name: String#<=> is_singleton: false name: <=> params: | str <=> other_str => -1, 0, +1 visibility: public