lib/vwo/utils/segment.rb
# Extract the operand_type, ie. lower, wildcard, regex or equals
#
# @param[String]        :operand    string value from leaf_node of dsl
# @return [[String, String]]        tuple of operand value and operand type
#
Extract the operand_type, ie. lower, wildcard, regex or equals
Extract the operand_type ie . lower wildcard regex or equals
def separate_operand(operand)
        groups = GROUPING_PATTERN.match(operand)
        return groups[1..2] if groups
        [OperandValueTypesName::EQUALS, operand]
      end
def separate_operand ( operand ) groups = GROUPING_PATTERN . match ( operand ) return groups [ 1 .. 2 ] if groups [ OperandValueTypesName :: EQUALS , operand ] end
Extract the operand_type, ie.
Extract the operand_type ie .
] tuple of operand value and operand type
] tuple of operand value and operand type
[String, String
operand
<not_specific>
param[String]
:operand string value from leaf_node of dsl
: operand string value from leaf_node of dsl