Ruby_Programming


#1

What should be the logic to determine whether object is interger,float or string if the object is given as the input by the user?


#2

If I understand correctly, you want to “guess” what type some data is that a user provided? The best way would probably be to use a regular expression. Otherwise, maybe only have “allowed” values and then you can more easily match them up.


#3
foo = "bar"
case foo
when String
  puts "I'm a string"
else
  puts "Bad input"
end

#4

Hi! I have a project for Edu Birdie, and I need some materials on Ruby. Can you suggest some?


#5

Hello @lorenzomitchell,

I would recommend you to take a look here:
https://www.ruby-lang.org/en/documentation/

If you need something specific, please let me know.


#6

I’ve read your website, as far as I see it’s about essays in general. You can ask Leo Green essay writer about this issue cause he is both developer and business owner.