class Symbol

Public Instance Methods

to_camelized_s() click to toggle source
# File lib/core_ext/symbol.rb, line 2
def to_camelized_s
  self.to_s.split('_').map(&:capitalize).join(' ')
end
to_control_type() click to toggle source
# File lib/core_ext/symbol.rb, line 15
def to_control_type
  Uia::ControlTypes.const_get_path "#{self.capitalize}"
end
to_control_type_const() click to toggle source
# File lib/core_ext/symbol.rb, line 19
def to_control_type_const
  control_type = Uia::Library::Constants::ControlTypes[self]
  raise Uia::InvalidControlType.new(self) unless control_type
  control_type
end
to_pattern_available_property() click to toggle source
# File lib/core_ext/symbol.rb, line 6
def to_pattern_available_property
  "Is#{self.to_camelized_s.delete(' ')}PatternAvailableProperty"
end
to_pattern_const() click to toggle source

:selection_item => Uia::Patterns::SelectionItem

# File lib/core_ext/symbol.rb, line 11
def to_pattern_const
  Uia::Patterns.const_get_path "#{self.capitalize}"
end