Module: AtCoderFriends::Generator::InputFragmentMixin

Included in:
AnyBuiltin, CBuiltin
Defined in:
lib/at_coder_friends/generator/base.rb

Instance Method Summary collapse

Instance Method Details

#gen_input(inpdef) ⇒ Object



86
87
88
# File 'lib/at_coder_friends/generator/base.rb', line 86

def gen_input(inpdef)
  InputFormatFragment.new(inpdef, fragments['input']).generate
end

#gen_inputsObject



82
83
84
# File 'lib/at_coder_friends/generator/base.rb', line 82

def gen_inputs
  pbm.formats.map { |inpdef| gen_input(inpdef).split("\n") }.flatten
end