« Karabiner/Manipulator/Actions/To_after_key_up.pm
↑ Summary
Karabiner/Manipulator/Actions/To_if_held_down.pm »
| 1 | package JSON::Karabiner::Manipulator::Actions::To_if_alone ; | ||||||||||||
| 2 | 1 | $JSON::Karabiner::Manipulator::Actions::To_if_alone::VERSION = '0.018'; | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 5 | 1 | ▶ | use JSON; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 6 | 1 | ▶ | use Carp; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 7 | 1 | ▶ | use parent 'JSON::Karabiner::Manipulator::Actions::To'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 8 | |||||||||||||
| 9 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||||
| 10 | 2 | my $class = shift; | |||||||||||
| 11 | 2 | my ($type, $value) = @_; | |||||||||||
| 12 | 2 | my $obj = $class->SUPER::new($type, $value); | |||||||||||
| 13 | 2 | ▶ | $obj->{data} = $value || [], | ||||||||||
|
Condition50%1/2
$value || []
MC/DC0%0/1
$value || []
$value
Truth table50%1/2
A
A= $value
| |||||||||||||
| 14 | return $obj; | ||||||||||||
| 15 | } | ||||||||||||
| 16 | |||||||||||||
| 17 | # ABSTRACT: to_if_alone action class | ||||||||||||
| 18 | |||||||||||||
| 19 | 1 | 1; | |||||||||||
| 20 | |||||||||||||
| 21 | __END__ | ||||||||||||