module IAmICan::ResultOf::Role
Public Instance Methods
role(assignment, i_am_i_can, given: [ ])
click to toggle source
# File lib/i_am_i_can/helpers/result_of.rb, line 13 def role assignment, i_am_i_can, given: [ ] ResultOf.(assignment, given, config: i_am_i_can, msg_prefix: 'Role Assignment: ', fail_msg: 'have not been defined or have been repeatedly assigned!' ) end
roles(definition, i_am_i_can, given: [ ])
click to toggle source
# File lib/i_am_i_can/helpers/result_of.rb, line 6 def roles definition, i_am_i_can, given: [ ] ResultOf.(definition, [ [], given ], config: i_am_i_can, msg_prefix: 'Role Definition: ', fail_msg: 'have been used by other roles!' ) end