| 1 | package Neovim::Ext::RemoteApi; | ||||||||||||||||||||
| 2 | 56 | $Neovim::Ext::RemoteApi::VERSION = '0.01'; | |||||||||||||||||||
| 3 | 56 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 56 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 56 | ▶ | use base qw/Class::Accessor/; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 56 | __PACKAGE__->mk_accessors (qw/nvim prefix/); | |||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | sub new | ||||||||||||||||||||
| 10 | { | ||||||||||||||||||||
| 11 | 11 | ▶ | my ($this, $nvim, $prefix) = @_; | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.4
Pod
documented
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 11 | ▶ | my $class = ref ($this) || $this; | ||||||||||||||||||
|
Condition33%1/3
ref $this || $this
MC/DC0%0/2
ref $this || $this
ref $this
$this
Truth table33%1/3
A || B
A= ref $thisB= $this
| |||||||||||||||||||||
| 14 | 11 | my $self = | |||||||||||||||||||
| 15 | { | ||||||||||||||||||||
| 16 | nvim => $nvim, | ||||||||||||||||||||
| 17 | prefix => $prefix, | ||||||||||||||||||||
| 18 | }; | ||||||||||||||||||||
| 19 | |||||||||||||||||||||
| 20 | 11 | return bless $self, $class; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | sub DESTROY | ||||||||||||||||||||
| 26 | ▶ | { | |||||||||||||||||||
|
Subroutine
DESTROY: not called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 56 | our $AUTOLOAD; | |||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | sub AUTOLOAD | ||||||||||||||||||||
| 33 | { | ||||||||||||||||||||
| 34 | 2 | ▶ | my $methodName; | ||||||||||||||||||
|
Subroutine
AUTOLOAD: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 35 | 2 | ($methodName = $AUTOLOAD) =~ s/.*:://; | |||||||||||||||||||
| 36 | |||||||||||||||||||||
| 37 | # Install | ||||||||||||||||||||
| 38 | 56 | ▶ | no strict 'refs'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 39 | 2 | *{$AUTOLOAD} = sub | |||||||||||||||||||
| 40 | { | ||||||||||||||||||||
| 41 | 2 | ▶ | my $this = shift; | ||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 42 | 2 | $this->nvim->request ($this->prefix.$methodName, @_); | |||||||||||||||||||
| 43 | 2 | }; | |||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | 2 | goto &$AUTOLOAD; | |||||||||||||||||||
| 46 | } | ||||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | =head1 NAME | ||||||||||||||||||||
| 49 | |||||||||||||||||||||
| 50 | Neovim::Ext::RemoteApi - Neovim RemoteApi class | ||||||||||||||||||||
| 51 | |||||||||||||||||||||
| 52 | =head1 VERSION | ||||||||||||||||||||
| 53 | |||||||||||||||||||||
| 54 | version 0.01 | ||||||||||||||||||||
| 55 | |||||||||||||||||||||
| 56 | =head1 SYNOPSIS | ||||||||||||||||||||
| 57 | |||||||||||||||||||||
| 58 | use Neovim::Ext; | ||||||||||||||||||||
| 59 | |||||||||||||||||||||
| 60 | =cut | ||||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | 56 | 1; | |||||||||||||||||||