lib/github_api/api/actions.rb
# Returns all API public methods for a given class.
Returns all API public methods for a given class.
Returns all API public methods for a given class .
def api_methods_in(klass)
      puts "---"
      (klass.send(:instance_methods, false) - ['actions']).sort.each do |method|
        puts "|--> #{method}"
      end
      klass.included_modules.each do |mod|
        if mod.to_s =~ /#{klass}/
          puts "| \\ #{mod.to_s}"
          mod.instance_methods(false).each do |met|
            puts "|  |--> #{met}"
          end
          puts "| /"
        end
      end
      puts "---"
      nil
    end
def api_methods_in ( klass ) puts "---" ( klass . send ( :instance_methods , false ) - [ 'actions' ] ) . sort . each do | method | puts "|--> #{method}" end klass . included_modules . each do | mod | if mod . to_s =~ / #{ klass } / puts "| \\ #{mod.to_s}" mod . instance_methods ( false ) . each do | met | puts "|  |--> #{met}" end puts "| /" end end puts "---" nil end
Returns all API public methods for a given class.
Returns all API public methods for a given class .
klass
<not_specific>