Class: Method
Instance Method Summary collapse
-
#signature(detail = nil) ⇒ Object
Outputs signiture information.
Instance Method Details
#signature(detail = nil) ⇒ Object
Outputs signiture information.
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/quarry/stub/probe.rb', line 144 def signature(detail=nil) ds = [] case detail when :complete, :all, :full ds = migration when :class, :with_class migration.each { |dh| ds << dh.ducks } when :pp, :pretty, :prettyprint, :pretty_print migration.each do |dh| responders = [] dh.ducks.each do |responder, argss| argss.each { |args| responders << "#{responder}( #{args.join(',')} )" } end ds << responders end else migration.each { |dh| ds << dh.ducks.keys } end return ds end |