Sha256: d06d7698ab5d0bf9020d92afc957c1214bb8a4cae4908a3e4781dea38aee902d
Contents?: true
Size: 604 Bytes
Versions: 5
Compression:
Stored size: 604 Bytes
Contents
transformation = -> (within_info) do splitted = within_info.split('within').reject(&:blank?) splitted.reverse_each.inject(page) do |within, info| captures = Helpers::Regex::WITHIN.match(info).captures el_alias = captures[0] locator = captures[1] Waiter.wait do within = Pickles.detect_node(el_alias, locator, within: within) end within end end transform_regex = /(within .*)$/ begin Transform(transform_regex, &transformation) rescue NoMethodError => err ParameterType( name: 'within', regexp: transform_regex, transformer: transformation ) end
Version data entries
5 entries across 5 versions & 1 rubygems