Sha256: fce9ddd15f3a0732d724b4196e84dc917d1fae36703c116c951f264c70aa555f

Contents?: true

Size: 190 Bytes

Versions: 12

Compression:

Stored size: 190 Bytes

Contents

class String
  # Escapes string for use with Objective-C
  #
  def to_obj_c
    "\\\@\\\"#{self}\\\""
  end

  # Escapes string for use with C
  #
  def to_c
    "\\\"#{self}\\\""
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
xcake-0.5.3 lib/xcake/core_ext/string.rb
xcake-0.5.2 lib/xcake/core_ext/string.rb
xcake-0.5.1 lib/xcake/core_ext/string.rb
xcake-0.5.0 lib/xcake/core_ext/string.rb
xcake-0.4.8 lib/xcake/core_ext/string.rb
xcake-0.4.7 lib/xcake/core_ext/string.rb
xcake-0.4.6 lib/xcake/core_ext/string.rb
xcake-0.4.5 lib/xcake/core_ext/string.rb
xcake-0.4.4 lib/xcake/core_ext/string.rb
xcake-0.4.3 lib/xcake/core_ext/string.rb
xcake-0.4.2 lib/xcake/core_ext/string.rb
xcake-0.4.1 lib/xcake/core_ext/string.rb