Current File : //proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/Kernel/chomp-i.yaml |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Equivalent to <tt>$_ = $_.chomp(<em>string</em>)</tt>. See <tt>String#chomp</tt>.
- !ruby/struct:SM::Flow::VERB
body: " $_ = "now\\n"\n chomp #=> "now"\n $_ #=> "now"\n chomp "ow" #=> "n"\n $_ #=> "n"\n chomp "xxx" #=> "n"\n $_ #=> "n"\n"
full_name: Kernel#chomp
is_singleton: false
name: chomp
params: |
chomp => $_
chomp(string) => $_
visibility: public