Sha256: 33ad2bf0a20e810b0f42a644b707993bee2bde9107e76b0b49af08ba19741f64
Contents?: true
Size: 345 Bytes
Versions: 8
Compression:
Stored size: 345 Bytes
Contents
class Symbol def to_camelized_s self.to_s.split('_').map(&:capitalize).join(' ') end # :selection_item => Uia::Patterns::SelectionItem def to_pattern_const "Uia::Patterns::#{self.to_s.capitalize}".split('::').reduce(Object) do |m, current| m.const_get current.split('_').map(&:capitalize).join end end end
Version data entries
8 entries across 8 versions & 1 rubygems