Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.223 kb
require_relative 'nobench'
benchmark(<<CODE)
MyTrait = Trait.build("MyTrait", {
gimme my name: ->
@name
end
})
foo = Object.clone()
foo.name = 'John'
foo.uses(MyTrait)
foo.gimme my name()
CODE
Jump to Line
Something went wrong with that request. Please try again.