Module: Namelab::CLI::InheritanceHook
- Included in:
- Commands::Generate
- Defined in:
- lib/namelab/cli.rb
Instance Method Summary collapse
Instance Method Details
#inherited(base) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/namelab/cli.rb', line 9 def inherited(base) super base.class_eval do i(examples arguments ).each do |var| instance_variable_get("@#{var}").unshift(*superclass.public_send(var).dup) end end end |