Class: DevSystem::Generator

Inherits:
Liza::Controller show all
Defined in:
lib/dev_system/sub/generator/generator.rb

Direct Known Subclasses

BaseGenerator, EnvGenerator

Class Method Summary collapse

Methods inherited from Liza::Controller

color, inherited, on_connected

Methods inherited from Liza::Unit

const_missing, division, part, system, #system, test_class

Class Method Details

.get_generator_signaturesObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dev_system/sub/generator/generator.rb', line 3

def self.get_generator_signatures
  signatures = []
  ancestors_until(Generator).each do |c|
    signatures +=
      c.methods_defined.select do |name|
        c.method(name).parameters == [[:req, :args]]
      end.map do |name|
        OpenStruct.new({
          name: ( name == :call ? "" : name.to_s ),
          description: "# no description",
        })
      end
  end
  signatures
end