Created
March 25, 2016 12:32
-
-
Save piyush8/092d87916c19a4035922 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module A | |
def student1 | |
s1 = {name:"piyush",roll_no:111,address:"hyd", subject1:70,subject2:62,subject3:74,subject4:83,subject5:65,subject6:81,total:500,percentage:80} | |
end | |
def student2 | |
s2= {name:"ravi",roll_no:112,address:"bngl",subject1:87,subject2:78,subject3:66,subject4:68,subject5:95,subject6:71,total:542,percentage:82} | |
end | |
end | |
class Stnd | |
include A | |
end | |
s = Stnd.new | |
p s.student1[:percentage] | |
p s.student2[:percentage] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment