Module: AtCoderFriends::Generator::DeclFragmentMixin
- Included in:
- AnyBuiltin, CBuiltin, RubyBuiltin
- Defined in:
- lib/at_coder_friends/generator/base.rb
Instance Method Summary collapse
Instance Method Details
#gen_decl(inpdef) ⇒ Object
76 77 78 |
# File 'lib/at_coder_friends/generator/base.rb', line 76 def gen_decl(inpdef) InputFormatFragment.new(inpdef, fragments['declaration']).generate end |
#gen_decls ⇒ Object
72 73 74 |
# File 'lib/at_coder_friends/generator/base.rb', line 72 def gen_decls pbm.formats.map { |inpdef| gen_decl(inpdef).split("\n") }.flatten end |