rubyscriptwriter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubyscriptwriter.rb +2 -2
- metadata +3 -3
data/lib/rubyscriptwriter.rb
CHANGED
@@ -17,7 +17,7 @@ class RubyScriptWriter
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def put_class(class_name,superclass_name = nil)
|
20
|
-
puts "class
|
20
|
+
puts "class #{class_name}#{ superclass_name && " < #{superclass_name}"}"
|
21
21
|
indent
|
22
22
|
yield self
|
23
23
|
outdent
|
@@ -26,7 +26,7 @@ class RubyScriptWriter
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def put_simple_method(method_name,*method_code)
|
29
|
-
puts "def "
|
29
|
+
puts "def " + method_name + "; " + method_code.join + "; end"
|
30
30
|
end
|
31
31
|
|
32
32
|
def put_method(method_name,*arguments)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Thomas Counsell, Green on Black Ltd
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-02 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|