lib/rubicure/girl.rb in rubicure-3.2.0 vs lib/rubicure/girl.rb in rubicure-3.2.1
- old
+ new
@@ -23,12 +23,10 @@
:attack_messages,
:transform_calls,
:random_transform_words,
].freeze
- attr_accessor :io
-
# @return [Integer]
def current_state
@current_state ||= 0
end
@@ -201,11 +199,11 @@
raise "unknown girl: #{girl_name}" unless valid?(girl_name)
@cache ||= {}
unless @cache[girl_name]
girl_config = config[girl_name] || {}
- @cache[girl_name] = Rubicure::Girl[girl_config].tap {|girl| girl.io = $stdout }
+ @cache[girl_name] = Rubicure::Girl[girl_config]
end
@cache[girl_name]
end
@@ -282,10 +280,10 @@
def print_by_line(message)
index = 0
message.each_line do |line|
sleep(self.class.sleep_sec) if index > 0
- io.puts line
+ puts line
index += 1
end
end
def method_missing(method_name, *args)