Sha256: 1904347a7d26c871ed8551d73eb1cdcef760c89dbc6175b378d1ddc01c6e8b3d

Contents?: true

Size: 544 Bytes

Versions: 13

Compression:

Stored size: 544 Bytes

Contents

name = "Adhithya Rajasekaran      ".rstrip

puts name

name = "    Adhithya Rajasekaran".lstrip

puts name

name = "Adhithya Rajasekaran".split

puts name

name = "   Adhithya Rajasekaran  ".strip

puts name

name = "Adhithya,Rajasekaran".split(",") 

puts name

name = ["Adhithya","Rajasekaran"].join

puts name

def jsonprint(inputjson)

  puts inputjson

end

def jsonp(inputjson)

  puts inputjson

end

def parsejson(inputtext)

  inputtext.split("{")

end

parsejson jsonprint "{message:Hello World!}"

jsonprint "{message:Hello World!}"

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
nilac-0.0.4.3.9.8 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.7.1 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.7 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.6 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.5 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.4 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.3 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.2 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9.1 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.9 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.8 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.7 shark/test_files/ruby_methods.nila
nilac-0.0.4.3.6 shark/test_files/ruby_methods.nila