james 0.2.0-universal-darwin-10 → 0.3.0-universal-darwin-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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)
|