Sha256: 4e0be48ae9f5389d8f5f35d10be12653d816b572005b15e370a208c2b11463b6
Contents?: true
Size: 417 Bytes
Versions: 2
Compression:
Stored size: 417 Bytes
Contents
# frozen_string_literal: true require 'at_coder_friends' module AtCoderVcFriends # holds target path information class PathInfo < AtCoderFriends::PathInfo def contest_name q = components[-1] q.split('#')[0] end def components @dir, prg = File.split(path) base, ext = prg.split('.') q = base.gsub(/_[^#_]+\z/, '') [path, dir, prg, base, ext, q] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
at_coder_vc_friends-0.1.1 | lib/at_coder_vc_friends/path_info.rb |
at_coder_vc_friends-0.1.0 | lib/at_coder_vc_friends/path_info.rb |