Class: Yarr::Command::ListInstanceMethod

Inherits:
ListCall show all
Defined in:
lib/yarr/command/list.rb

Overview

handles 'list Ar%#si%' like commands

Instance Attribute Summary

Attributes inherited from Base

#ast, #irc

Class Method Summary collapse

Methods inherited from List

#handle, #response

Methods included from Concern::ASTDigger

#digger

Methods included from Concern::Responder

#advice

Methods inherited from Base

#handle, #initialize

Constructor Details

This class inherits a constructor from Yarr::Command::Base

Class Method Details

.match?(ast) ⇒ Boolean

Can we handle the given AST?

Parameters:

  • ast (hash)

    parsed AST

Returns:

  • (Boolean)

52
53
54
# File 'lib/yarr/command/list.rb', line 52

def self.match?(ast)
  ast[:command] == 'list' && ast.key?(:instance_method)
end