Fey::Role::IsLiteral - A role for things that are literals


Fey documentation Contained in the Fey distribution.

Index


Code Index:

NAME

Top

Fey::Role::IsLiteral - A role for things that are literals

VERSION

Top

version 0.40

SYNOPSIS

Top

  use Moose;

  with 'Fey::Role::IsLiteral';

DESCRIPTION

Top

This role provides an id() method that simply calls $object->sql('Fey::FakeDBI').

BUGS

Top

See Fey for details on how to report bugs.

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Fey documentation Contained in the Fey distribution.

package Fey::Role::IsLiteral;
BEGIN {
  $Fey::Role::IsLiteral::VERSION = '0.40';
}

use strict;
use warnings;
use namespace::autoclean;

use Moose::Role;

requires 'sql';

sub id {
    return $_[0]->sql('Fey::FakeDBI');
}

1;

# ABSTRACT: A role for things that are literals




__END__