in this lecture we will see a sample program of how to use Ruby so so I’m inside my Ruby folder this is a sample directory which i created so I do not have any files here so to create a ruby file make sure that you have you add an extension dot RB so for example so let me create a file sample and but make sure to add dot RB ok so here just I will write a simple code that is put this is my sample code so and I am saving it by using escape color WQ ok so to execute that file ok before that I listed my files by using LS command I have sample dot RB to execute that file we can do a row be followed by sample dot RB so we can see this is my sample code sometimes you may you may not get this result you may get errors so if that is the case try doing this along with this code make sure to add the path here that is hash exclamation followed by user bin and then a ruby so this user bin ruby is nothing but your installation directory so where did you install your Ruby so give that path so if you check user followed by pin and then followed by a row B so if you see my Ruby is installed in this path so once you give this make sure to save this and then try doing a row B sample dot RB enter so we will get the same output

Tags:






Youtube
Facebook
Google Plus
Twitter
TutorialDrive


Apache Zookeeper Tutorial

Apache Kafka Tutorial

Apache Kafka Security

Elasticserarch n Kibana

Java 8 Tutorial

Log4J Tutorial

Apache Storm Tutorial

SQLite Tutorial

Apache Ant Tutorial

Related Posts

blog

Apache Kafka Commands Cheat sheet

Spread the loveKafka Topics List existing topics bin/kafka-topics.sh –zookeeper localhost:2181 –list Purge a topic bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –config retention.ms=1000 … wait a minute … bin/kafka-topics.sh –zookeeper localhost:2181 –alter –topic mytopic –delete-config retention.ms
Read more…

blog

What is Apache Maven | Apache Maven complete tutorial from scratch pdf

Spread the love In this post you will learn the complete tutorial of Apache Maven build tool What is Maven ? Apache Maven is a software project management and comprehension tool. Based on the concept
Read more…

blog

Practical Guide for Web Development in 2018

Spread the loveWelcome to my practical guide  for web development in 2018 in terms of  technology and career. Before we start I just want to  mention a few things, you don’t need to learn  everything that
Read more…