Sha256: 245d982fc630c8a9bbcc62c8ff114296e1a0fd2d444e99b5c5f0b82ba96853fb
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
require 'erb' class Judge def initialize(input: , target: , output:) @input = input @target = target @output = output end def render ERB.new(File.read(self.class.prompt_path)).result(binding) end class << self def prompt_path @prompt_path || File.join(__dir__, 'judge.md.erb') end def set_prompt_path(path) @prompt_path = path end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kaba-0.5.0 | lib/kaba/judge.rb |
kaba-0.4.0 | lib/kaba/judge.rb |
kaba-0.3.2 | lib/kaba/judge.rb |
kaba-0.3.0 | lib/kaba/judge.rb |