Sha256: d536aef8976e34a248e763be8edfd40dd94071208c67cc0d4a41c6c9eef30d92
Contents?: true
Size: 366 Bytes
Versions: 8
Compression:
Stored size: 366 Bytes
Contents
# This query resolves to the subject's room, as opposed to the parent. It's # useful for making sure you target the room instead of a container or a # supporter. module Gamefic::Query class Room < Parent def context_from(subject) [subject.room] end end end module Gamefic::Use def self.room *args Gamefic::Query::Room.new *args end end
Version data entries
8 entries across 8 versions & 1 rubygems