Sha256: 3c5842a067be628976a4a5505ec3c3af17b4e05ac82321232ac2c0a161a71eb5
Contents?: true
Size: 376 Bytes
Versions: 22
Compression:
Stored size: 376 Bytes
Contents
You can configure your own Ability factory. ```ruby class MyCustomAbility < CanTango::Ability def initialize name, options = {} # super # custom logic end end Cantango.configure.ability do |ability| ability.factory Proc.new{|name, options| MyCustomAbility.new name, options } end ``` This feature is currently also used for performance testing of Cantango!
Version data entries
22 entries across 22 versions & 1 rubygems