Sha256: fec6fc0457aab9f59602dbb2759d731dd2955356d8c97e8aa239d6b30241d05c
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
module Polytrix class ChallengeBuilder include Polytrix::Core::FileFinder def initialize(implementor) @implementor = implementor end def build(challenge_data) challenge_data[:source_file] ||= find_file @implementor.basedir, challenge_data[:name] challenge_data[:basedir] ||= @implementor.basedir challenge_data[:implementor] ||= @implementor.name Challenge.new challenge_data end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | lib/polytrix/challenge_builder.rb |