hi everyone in this lecture we will see what is biggie statement in Ruby so I’m inside my Ruby directory so and I have only one side that is sample large Ruby okay so we will see what is begin statement in Ruby so before you know demonstrating anything about digging I just I just want to show you some examples so that you know the concept will be clear so we have sampled at Ruby I let me create a new you know file that is breaking example dot and remember every file we should use the extension dot RB then only it will considered as ruby file ok sorry so let me copy the sample dodge ruby file has begin example that ruby file so instead of writing every time some code and just copying it so if you open begin dot example we just have one you know print statement that is puts this is my sample code ok let me open that begin example so we just have this is the you know the directory where our Ruby’s install and then followed by one just put statement it means this is displaying this is my sample code as output let me run this so to run use Ruby followed by a file name begin example.com be ok so we we got output this is my sample code ok now in the same file we try to add our begin statement so what is big in statement you will say that so ok i wrote i am printing this is my sample code and also i want to print another line so before that with me use begin and remember I’m using all that you know caps letters or uppercase letters begin and in between the beginning followed by curly braces and in between the curly braces are right or whatever the code you want to write for simplicity I am also run printing some text this is otherwise harm inside begging statement okay so let me say this let me run once again the beginning uncle if you see you got I am inside begin statement first and then we got this is my sample code if you see actually it should print this is my sample code as first and then it should print an inside begin statement but we got the output in other way the reason is so whenever you use begin statement the Ruby will execute these statements first so that is the significance of this big in statement


Google Plus

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


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…


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…


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…