class Bridgetown::Drops::RelationsDrop
Public Instance Methods
[](type)
click to toggle source
# File lib/bridgetown-core/drops/relations_drop.rb, line 8 def [](type) return nil unless type.to_s.in?(@obj.relation_types) @obj.resources_for_type(type) end
fallback_data()
click to toggle source
# File lib/bridgetown-core/drops/relations_drop.rb, line 18 def fallback_data {} end
key?(type)
click to toggle source
# File lib/bridgetown-core/drops/relations_drop.rb, line 14 def key?(type) type.to_s.in?(@obj.relation_types) end