Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Classes/Groovy/classes-1.groovy
Normal file
15
Task/Classes/Groovy/classes-1.groovy
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/** Ye olde classe declaration */
|
||||
class Stuff {
|
||||
/** Heare bee anne instance variable declared */
|
||||
def guts
|
||||
|
||||
/** This constructor converts bits into Stuff */
|
||||
Stuff(injectedGuts) {
|
||||
guts = injectedGuts
|
||||
}
|
||||
|
||||
/** Brethren and sistren, let us flangulate with this fine flangulating method */
|
||||
def flangulate() {
|
||||
println "This stuff is flangulating its guts: ${guts}"
|
||||
}
|
||||
}
|
||||
16
Task/Classes/Groovy/classes-2.groovy
Normal file
16
Task/Classes/Groovy/classes-2.groovy
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
def stuff = new Stuff('''
|
||||
I have made mistakes in the past.
|
||||
I have made mistakes in the future.
|
||||
-- Vice President Dan Quayle
|
||||
''')
|
||||
|
||||
stuff.flangulate()
|
||||
|
||||
stuff.guts = '''
|
||||
Our enemies are innovative and resourceful, and so are we.
|
||||
They never stop thinking about new ways to harm our country and our people,
|
||||
and neither do we.
|
||||
-- President George W. Bush
|
||||
'''
|
||||
|
||||
stuff.flangulate()
|
||||
Loading…
Add table
Add a link
Reference in a new issue