class AtCoderVcFriends::PathInfo

holds target path information

Public Instance Methods

components() click to toggle source
# File lib/at_coder_vc_friends/path_info.rb, line 13
def components
  @dir, prg = File.split(path)
  base, ext = prg.split('.')
  q = base.gsub(/_[^#_]+\z/, '')
  [path, dir, prg, base, ext, q]
end
contest_name() click to toggle source
# File lib/at_coder_vc_friends/path_info.rb, line 8
def contest_name
  q = components[-1]
  q.split('#')[0]
end