Module: KissShot::ObjC::Base
Instance Method Summary collapse
-
#_objc_bracket_array(array) ⇒ String
Create common (?,?,?) from array, nothing if array is empty.
-
#_objc_diamond_array(array) ⇒ String
Create common <?,?,?> from array, nothing if array is empty.
Instance Method Details
#_objc_bracket_array(array) ⇒ String
Create common (?,?,?) from array, nothing if array is empty
19 20 21 22 23 24 25 |
# File 'lib/kiss_shot/objc/base.rb', line 19 def _objc_bracket_array(array) unless array.empty? "(#{array.join(', ')})" else "" end end |
#_objc_diamond_array(array) ⇒ String
Create common <?,?,?> from array, nothing if array is empty
8 9 10 11 12 13 14 |
# File 'lib/kiss_shot/objc/base.rb', line 8 def _objc_diamond_array(array) unless array.empty? "<#{array.join(', ')}>" else "" end end |