Class: AtCoderFriends::Generator::AnyBuiltin

Inherits:
Base
  • Object
show all
Includes:
ConstFragmentMixin, DeclFragmentMixin, InputFragmentMixin
Defined in:
lib/at_coder_friends/generator/any_builtin.rb

Overview

generates source from template

Constant Summary collapse

ACF_HOME =
File.realpath(File.join(__dir__, '..', '..', '..'))
TMPL_DIR =
File.join(ACF_HOME, 'templates')
TEMPLATE =
File.join(TMPL_DIR, 'any_builtin.md.erb')
FRAGMENTS =
File.join(TMPL_DIR, 'any_builtin_fragments.yml')
ATTRS =
Attributes.new(:md, TEMPLATE, FRAGMENTS)

Instance Attribute Summary

Attributes inherited from Base

#cfg, #pbm

Instance Method Summary collapse

Methods included from InputFragmentMixin

#gen_input, #gen_inputs

Methods included from DeclFragmentMixin

#gen_decl, #gen_decls

Methods included from ConstFragmentMixin

#gen_const, #gen_consts

Methods inherited from Base

#config_file_ext, #config_fragments, #config_template, #embed_lines, #fragments, #generate, #initialize, #process

Constructor Details

This class inherits a constructor from AtCoderFriends::Generator::Base

Instance Method Details

#attrsObject



17
18
19
# File 'lib/at_coder_friends/generator/any_builtin.rb', line 17

def attrs
  ATTRS
end