Sha256: 2b177a6f1768bb79e0430949849523b3824047e709c64d1518fda2506005f203
Contents?: true
Size: 639 Bytes
Versions: 1
Compression:
Stored size: 639 Bytes
Contents
class Language JAVA = 'java' RUBY = 'rb' PYTHON = 'py' def java(camel_method_name:, locator_type:, locator_value:) <<~JAVA By #{camel_method_name}() { return MobileBy.#{locator_type[:java]}("#{locator_value}"); } JAVA end def ruby(snake_method_name:, locator_type:, locator_value:) <<~RUBY def #{snake_method_name} return :#{locator_type[:ruby]}, "#{locator_value}" end RUBY end def type(format) case format when 'ruby' RUBY when 'java' JAVA when 'python' PYTHON else "I haven't this language format" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skeleton-ui-0.1.1 | lib/skeleton/languages.rb |