Module: AtCoderFriends::Generator::ConstFragmentMixin
- Included in:
- AnyBuiltin, CBuiltin, RubyBuiltin
- Defined in:
- lib/at_coder_friends/generator/base.rb
Instance Method Summary collapse
Instance Method Details
#gen_const(c) ⇒ Object
66 67 68 |
# File 'lib/at_coder_friends/generator/base.rb', line 66 def gen_const(c) ConstFragment.new(c, fragments['constant']).generate end |
#gen_consts ⇒ Object
62 63 64 |
# File 'lib/at_coder_friends/generator/base.rb', line 62 def gen_consts pbm.constants.map { |c| gen_const(c) } end |