Sha256: 757c0819d980a45c1dbd6cd20394a6c058f98d354326a75f823d94f73757d3c5
Contents?: true
Size: 940 Bytes
Versions: 4
Compression:
Stored size: 940 Bytes
Contents
class InterpretationContext def contracts (@contracts ||= {}) end def roles (@roles ||= {}) end def role_aliases (@role_aliases ||= {}) end def defining_role @defining_role end def private_interactions (@private_interactions ||= {}) end def initialize(roles, contracts, role_aliases, defining_role, private_interactions) raise "Aliases must be a hash" unless role_aliases.instance_of? Hash or role_aliases == nil raise "Roles must be a hash" unless roles.instance_of? Hash or roles == nil raise "Contracts must be a hash" unless contracts.instance_of? Hash or contracts == nil @roles = roles raise "Defining role is undefined" if defining_role && (!self.roles.has_key? defining_role) @contracts = contracts @role_aliases = role_aliases @defining_role = defining_role @private_interactions = private_interactions end end
Version data entries
4 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maroon-0.8.0 | generated/interpretation_context.rb |
maroon-0.8.0 | lib/interpretation_context.rb |
maroon-0.7.1 | generated/interpretation_context.rb |
maroon-0.7.1 | lib/interpretation_context.rb |