Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 441 Bytes
# This was cloned from a TextMate bundle for yasnippet.
#group : definitions
# key: cla.4
# --
class ${1:BlankSlate}
instance_methods.each { |meth| undef_method(meth) unless meth =~ /\A__/ }
def initialize${2/(^.*?\S.*)|.*/(?1:\()/}${2:args}${2/(^.*?\S.*)|.*/(?1:\))/}
@${3:delegate} = ${4:delegate_object}
$0
end
def method_missing(meth, *args, &block)
@${3:delegate}.send(meth, *args, &block)
end
end