Top Level Namespace
Defined Under Namespace
Modules: ActiveMongoose, ActiveSupport, Gem, Kernel, Uninteresting
Classes: Foo, IO, Interesting, String, TheTest, Unroller, Wasabi
Instance Method Summary
collapse
Instance Method Details
#bagel ⇒ Object
1518
1519
1520
|
# File 'lib/unroller.rb', line 1518
def bagel
'...'
end
|
#block_taker(&block) ⇒ Object
1575
1576
1577
1578
1579
1580
1581
|
# File 'lib/unroller.rb', line 1575
def block_taker(&block)
puts "I'm the block taker. I take blocks."
puts "Please Step Over the next line."
yield puts "Done yielding to the block"
end
|
#bread! ⇒ Object
1604
1605
1606
1607
1608
|
# File 'lib/unroller.rb', line 1604
def bread!
_do = nil
_do = nil
_do = nil
end
|
#cheese! ⇒ Object
1609
1610
1611
1612
1613
|
# File 'lib/unroller.rb', line 1609
def cheese!
_do = nil
_do = nil
_do = nil
end
|
#confirm(question, options = ['Yes', 'No']) ⇒ Object
107
108
109
110
111
112
113
114
115
116
|
# File 'lib/unroller.rb', line 107
def confirm(question, options = ['Yes', 'No'])
print question + " " +
"Yes".(:red) + ", " +
"No".(:green) +
" > "
response = ''
response = $stdin.getc.chr.downcase while !['y', 'n', "\n"].include?(begin response.downcase!; response end)
response
end
|
#create_an_instance_of_UninterestingClassThatCluttersUpOnesTraces ⇒ Object
#go_to_depth_and_call_1(depth, &block) ⇒ Object
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
|
# File 'lib/unroller.rb', line 1176
def go_to_depth_and_call_1(depth, &block)
if caller(0).size == depth
puts 'calling a'
block.call
else
go_to_depth_and_call_2(depth, &block)
end
end
|
#go_to_depth_and_call_2(depth, &block) ⇒ Object
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
|
# File 'lib/unroller.rb', line 1186
def go_to_depth_and_call_2(depth, &block)
if caller(0).size == depth
puts 'calling a'
block.call
else
go_to_depth_and_call_1(depth, &block)
end
end
|
#herald(message) ⇒ Object
1071
1072
1073
|
# File 'lib/unroller.rb', line 1071
def herald(message)
puts message.ljust(130).bold.white.on_magenta
end
|
#in_this_file ⇒ Object
1288
1289
1290
1291
1292
1293
|
# File 'lib/unroller.rb', line 1288
def in_this_file
a = 'a'
b = 'b'
c = 'c'
etc = 'etc.'
end
|
#jump!(how_high = 3) ⇒ Object
1099
1100
1101
1102
1103
|
# File 'lib/unroller.rb', line 1099
def jump!(how_high = 3)
how_high.times do
'jump!'
end
end
|
#method1 ⇒ Object
1117
|
# File 'lib/unroller.rb', line 1117
def method1; end
|
#method2 ⇒ Object
1118
1119
1120
|
# File 'lib/unroller.rb', line 1118
def method2
'stuff!'
end
|
#method3 ⇒ Object
1121
|
# File 'lib/unroller.rb', line 1121
def method3; end
|
#method_1 ⇒ Object
1558
1559
1560
|
# File 'lib/unroller.rb', line 1558
def method_1
'stuff'
end
|
#method_2 ⇒ Object
1561
1562
1563
|
# File 'lib/unroller.rb', line 1561
def method_2
'stuff'
end
|
#my_very_own_method ⇒ Object
1495
1496
1497
1498
1499
1500
1501
|
# File 'lib/unroller.rb', line 1495
def my_very_own_method
Unroller::trace :show_args => false, :show_locals => true do
sum = sum(1, 2, 3)
sum
sum = sum(3, 3, 3)
end
end
|
#pickles! ⇒ Object
1614
1615
1616
1617
1618
|
# File 'lib/unroller.rb', line 1614
def pickles!
_do = nil
_do = nil
_do = nil
end
|
#raise_an_error ⇒ Object
1433
1434
1435
|
# File 'lib/unroller.rb', line 1433
def raise_an_error
raise 'an error'
end
|
#subway ⇒ Object
1596
1597
1598
1599
1600
1601
1602
1603
|
# File 'lib/unroller.rb', line 1596
def subway
question = 'What kind of bread would you like?'
bread!
question = 'Would you like any cheese?'
cheese!
question = 'Would you like pickles on that?'
pickles!
end
|
#sum(a, b, c) ⇒ Object
1492
1493
1494
|
# File 'lib/unroller.rb', line 1492
def sum(a, b, c)
a + b + c
end
|