PPT-Ruby Reflection
Author : lindy-dunigan | Published Date : 2016-06-25
and other languages Reflection Also called introspection Program can examinemodify its own state set variables call methods add new methods define new objects
Presentation Embed Code
Download Presentation
Download Presentation The PPT/PDF document "Ruby Reflection" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Ruby Reflection: Transcript
and other languages Reflection Also called introspection Program can examinemodify its own state set variables call methods add new methods define new objects Who Am I said the object. Staining total protein before specific protein de tection techniques provides an assessment of protein transfer efficiency and makes it possible to detect contaminating proteins in the sample and to compare the sample with molecular weight standards and other languages… . Method invocation. puts “yes” . // global, method of Kernel. Math.sqrt. . 2. // object Math, method . sqrt. message.length. . // object message, method length, no . args. Slide . 1. Basic Ruby Syntax. sum = 0. i. = 1. while. . i. <= 10 . do. sum += . i. *. i. . i. = . i. + 1. end. puts "Sum of squares is #{sum}\n". Newline is statement separator. do ... end. Also “open class”. and other languages… . Modules . A module is a named group of methods, constants, and class variables. All classes are modules. Modules are not classes. Can’t be instantiated. Rebecca Crabb and Blaine . Stancill. Ruby. Open-Source Programming Language. Created by Yukihiro Matsumoto. Blended parts of other languages. “I wanted a scripting language that was more powerful than Perl and more object-oriented than Python”. What is Ruby on Rails?. Ruby on Rails is an open source full-stack web framework.. It is an alternative to PHP/. MySQL. .. It can render templates, handle user authentication, has built-in database functionality, etc. hummingbird. Tyler B Annika . Madisson. . Bennett Ava MIKEY. Range. ruby-throated hummingbird ‘s range is the Eastern United States. They also live partly in the Midwest. Habitat. The humming bird lives in the woodlands and along the borders of the forest. They also like tall trees to build there nest on .They live by wild flowers so they can get nectar from it. They like to perch whenever is possible. You can also find them in parks grasslands and back yards.. Reflection. When a wave reaches a boundary between two media, usually some or all of the wave bounces back into the first medium.. A metal surface is rigid to light waves that shine upon it. . Light . Ronald L. Ramos. What is Ruby?. Ruby is a scripting language designed by Yukihiro Matsumoto, also known as . Matz. . It runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.. Rails. : An introduction - . Who. . am. I?. Maciej Mensfeld. Presented . b. y. :. . Maciej Mensfeld. RoR. : An introduction . maciej@mensfeld.pl. dev.mensfeld.pl. github.com. /. mensfeld. senior . Who. . am. I?. Maciej Mensfeld. 1/23. Presented . b. y. :. . Maciej Mensfeld. Ruby: An introduction . maciej@mensfeld.pl. dev.mensfeld.pl. github.com. /. mensfeld. senior . ruby. . developer@araneo.pl. and other languages… . Reflection. Also called . introspection. Program can examine/modify its own state. set variables. call methods. add new methods. define new objects. Who Am I? (said the object). Slide . 1. Basic Ruby Syntax. sum = 0. i. = 1. while. . i. <= 10 . do. sum += . i. *. i. . i. = . i. + 1. end. puts "Sum of squares is #{sum}\n". Newline is statement separator. do ... end. Slide . 1. Basic Ruby Syntax. sum = 0. i. = 1. while. . i. <= 10 . do. sum += . i. *. i. . i. = . i. + 1. end. puts "Sum of squares is #{sum}\n". Newline is statement separator. do ... end.
Download Document
Here is the link to download the presentation.
"Ruby Reflection"The content belongs to its owner. You may download and print it for personal use, without modification, and keep all copyright notices. By downloading, you agree to these terms.
Related Documents