Class: AtCoderFriends::Generator::AnyBuiltin
- 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
Instance Method Summary collapse
Methods included from InputFragmentMixin
Methods included from DeclFragmentMixin
Methods included from ConstFragmentMixin
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
#attrs ⇒ Object
17 18 19 |
# File 'lib/at_coder_friends/generator/any_builtin.rb', line 17 def attrs ATTRS end |