Skip to content

Instantly share code, notes, and snippets.

@frsyuki
Created February 25, 2011 10:05
Show Gist options
  • Save frsyuki/843604 to your computer and use it in GitHub Desktop.
Save frsyuki/843604 to your computer and use it in GitHub Desktop.
class Example
slot :slot1 # 出力先1の宣言(メンバメソッドをメタプログラム)
slot :slot2 # 出力先2の宣言(メンバメソッドをメタプログラム)
def func(input)
emit(:slot1, input.a)
emit(:slot2, input.b)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment