Module: DynamoidAdvancedWhere::Nodes::Concerns::SupportsIncludes
- Included in:
- IntegerArrayAttributeNode, IntegerSetAttributeNode, StringArrayAttributeNode, StringAttributeNode, StringSetAttributeNode
- Defined in:
- lib/dynamoid_advanced_where/nodes/includes.rb
Instance Method Summary collapse
Instance Method Details
#includes?(other_value) ⇒ Boolean
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/dynamoid_advanced_where/nodes/includes.rb', line 16 def includes?(other_value) val = if respond_to?(:parse_right_hand_side) parse_right_hand_side(other_value) else other_value end IncludesNode.new( lh_operation: self, rh_operation: LiteralNode.new(val) ) end |