Module: IAmICan::ResultOf::Role
- Included in:
- IAmICan::ResultOf
- Defined in:
- lib/i_am_i_can/helpers/result_of.rb
Instance Method Summary collapse
- #role(assignment, i_am_i_can, given: [ ]) ⇒ Object
- #roles(definition, i_am_i_can, given: [ ]) ⇒ Object
Instance Method Details
#role(assignment, i_am_i_can, given: [ ]) ⇒ Object
13 14 15 16 17 18 |
# 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: [ ]) ⇒ Object
6 7 8 9 10 11 |
# 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 |