Skip to content

Appletone/RubySwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RubySwift

RubySwift is making Swift more Ruby way.

Examples

5.times {
    println("Hey! You look really like Ruby")
}
5.upto(10) {
    println($0)
}

=>
5
6
7
8
9
10
3.days.ago  // => 2014-07-21 01:06:03 +0000
"HELLO".capitalized
=> Hello
"HELLO".downcase
=> hello
"hello".upcase
=> HELLO

Methods

Date

Function | ---- | ------------- ago|

String

Function | ---- | ------------- capitalized| downcase| upcase|

Int

Function | ---- | ------------- times| upto|

TODO

String

  • split(Regexp)
  • scan(Regexp)
  • match(Regexp)
  • strip
  • split(“”)
  • reverse
  • to_i
  • to_s
  • to_str
  • sub(“string”, “replace”)
  • sub(Regexp, “replace”)
  • gsub(“string”, “replace”)
  • gsub(Regexp, “replace”)
  • str[Regexp]

Int

  • downto
  • to_s
  • abs
  • ceil
  • floor

Array

...

Dictionary

...

About

RubySwift is making Swift more Ruby way.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published