Skip to content

Instantly share code, notes, and snippets.

@adaptiveoptics
Last active November 28, 2016 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adaptiveoptics/6c58095c5dd99d725487989c282f9214 to your computer and use it in GitHub Desktop.
Save adaptiveoptics/6c58095c5dd99d725487989c282f9214 to your computer and use it in GitHub Desktop.
role problem
#|{
Base role for Antennas
}
role HG::Antenna
{
has $.receiver is rw;
has $.transmitter is rw;
has Str $.recv-format is rw = 'html';
has Str $.xmit-format is rw = 'html';
method connect() {...}
method sendto-receiver() {...}
method getfor-transmitter() {...}
method transmit() {...}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment