Skip to content

Instantly share code, notes, and snippets.

@greenboxal
Created February 18, 2015 02:05
Show Gist options
  • Save greenboxal/6e7abe8a25d9e7645d5b to your computer and use it in GitHub Desktop.
Save greenboxal/6e7abe8a25d9e7645d5b to your computer and use it in GitHub Desktop.
require './lib'
defmod \TraceBefore ->
def \hello ->
console.log 'hello'
$super!
defmod \TraceAfter ->
def \hello ->
console.log 'hello'
$super!
defclass \A ->
def \hello ->
console.log 'hello'
defget \lol ->
5
defclass \A ->
@include TraceAfter
@prepend TraceBefore
def \hello ->
$super!
console.log 'hello'
defget \lol ->
$super! + 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment