Sha256: 0f6406a17392188741cdc52065f9dc64971e3181ddfb2d087d4e21d2c95ad69d
Contents?: true
Size: 408 Bytes
Versions: 23
Compression:
Stored size: 408 Bytes
Contents
module MotionKit module_function def objective_c_method_name(str) str.split('_').inject([]) { |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join end def camel_case(str) str.split('_').map(&:capitalize).join end def setter(method_name) "set#{method_name[0].capitalize}#{method_name[1..-1]}:" end def appearance_class @appearance_class ||= Class.new end end
Version data entries
23 entries across 23 versions & 1 rubygems