Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 03a9e73a7a
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.263 kb
module RubyWarrior
class Tower
attr_reader :path
def initialize(path)
@path = File.join(File.expand_path('../../../towers/', __FILE__), path)
end
def name
File.basename(path)
end
alias_method :to_s, :name
end
end
Jump to Line
Something went wrong with that request. Please try again.