Module: SolvePb::ClassMethods

Included in:
SolvePb
Defined in:
lib/solve_pb.rb

Instance Method Summary collapse

Instance Method Details

#mainObject



24
25
26
27
# File 'lib/solve_pb.rb', line 24

def main
  args = SolvePb::ArgsInspector.new.parse
  args.nil? ? 'Lack of URL' : SolvePb::FileGenerator.new.generate(args)
end

#rootObject



16
17
18
# File 'lib/solve_pb.rb', line 16

def root
  File.dirname __dir__
end

#testObject



20
21
22
# File 'lib/solve_pb.rb', line 20

def test
  File.join root, "test"
end