Class: Advent::Solution
- Inherits:
-
Object
- Object
- Advent::Solution
- Defined in:
- lib/advent/solution.rb
Instance Method Summary collapse
Instance Method Details
#input_text ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/advent/solution.rb', line 2 def input_text require "pathname" location, _ = Object.const_source_location(self.class.to_s) path = Pathname.new(location) path.dirname.join(".#{path.basename(".rb")}_input.txt").read end |