Sha256: 16cfc0761e3c1558c5b0d56389702ac41d12567fac34ba22401b7892573d959d
Contents?: true
Size: 444 Bytes
Versions: 7
Compression:
Stored size: 444 Bytes
Contents
module Gamefic module Standard script do respond :close, available do |actor, thing| actor.tell "You can't close #{the thing}." end respond :close, available(Openable) do |actor, thing| if thing.open? actor.tell "You close #{the thing}." thing.open = false else actor.tell "#{The thing} is already closed." end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems