File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 810810# * #truncate: Truncates `self` to the given size.
811811#
812812class File < IO
813+ # The string that `File.ftype` and `File::Stat#ftype` return
814+ type ftype = 'file' | 'directory' | 'characterSpecial' | 'blockSpecial'
815+ | 'fifo' | 'link' | 'socket' | 'unknown'
816+
813817 # <!-- rdoc-file=file.c -->
814818 # platform specific alternative separator
815819 #
Original file line number Diff line number Diff line change 99class File::Stat
1010 include Comparable
1111
12- # The string that `File::Stat#ftype` returns
13- type ftype = 'file' | 'directory' | 'characterSpecial' | 'blockSpecial'
14- | 'fifo' | 'link' | 'socket' | 'unknown'
15-
1612 # <!--
1713 # rdoc-file=file.c
1814 # - File::Stat.new(file_name) -> stat
@@ -230,7 +226,7 @@ class File::Stat
230226 #
231227 # File.stat("/dev/tty").ftype #=> "characterSpecial"
232228 #
233- def ftype : () -> ftype
229+ def ftype : () -> File:: ftype
234230
235231 # <!--
236232 # rdoc-file=file.c
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def test_file?
9595 end
9696
9797 def test_ftype
98- assert_send_type "() -> File::Stat:: ftype" ,
98+ assert_send_type "() -> File::ftype" ,
9999 File ::Stat . new ( File . expand_path ( __FILE__ ) ) , :ftype
100100 end
101101
You can’t perform that action at this time.
0 commit comments