Ruby Examples
This commit is contained in:
10
level6/58.rb
Executable file
10
level6/58.rb
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/ruby
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
=begin
|
||||
파일명에서 확장자 추출
|
||||
=end
|
||||
|
||||
str = "hello.txt"
|
||||
|
||||
puts File.extname(str)
|
||||
Reference in New Issue
Block a user