Help for this page

Select Code to Download


  1. or download this
    bless $class, [ @_ ];
    
  2. or download this
    $e->index( index => $index,
               type  => $type,
    ...
                   result  => $object->result,
               },
    );
    
  3. or download this
    sub hashify {
        my $self = shift;
        return { %$self }
    }
    
  4. or download this
    my @attributes = qw( head opinion result );
    sub hashify {
        my $self = shift;
        return { map { $attributes[$_] => $self->[$_] } 0 .. $#$self }
    }