james 0.2.0-universal-darwin-10 → 0.3.0-universal-darwin-10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/james/dialog_api.rb +2 -2
- metadata +1 -1
data/lib/james/dialog_api.rb
CHANGED
@@ -4,7 +4,7 @@ module James
|
|
4
4
|
#
|
5
5
|
# The simple way will directly add itself to James.
|
6
6
|
#
|
7
|
-
# James.
|
7
|
+
# James.dialog(optional_args_for_initialize) do
|
8
8
|
# # Your dialog.
|
9
9
|
# #
|
10
10
|
# end
|
@@ -26,7 +26,7 @@ module James
|
|
26
26
|
|
27
27
|
class << self
|
28
28
|
|
29
|
-
def
|
29
|
+
def dialog *args, &block
|
30
30
|
dialog = Class.new { include James::Dialog }
|
31
31
|
dialog.class_eval &block
|
32
32
|
use dialog.new(*args)
|