lib/gamefic/user/tty.rb in gamefic-1.4.1 vs lib/gamefic/user/tty.rb in gamefic-1.5.0

- old
+ new

@@ -1,16 +1,14 @@ require 'gamefic/engine' require 'json' -require 'gamefic/html_to_ansi' +require 'gamefic/text' module Gamefic # Extend User::Base to convert HTML into ANSI text. # class User::Tty < User::Base - include HtmlToAnsi - def save filename, snapshot data = snapshot.merge(:metadata => @character.plot.metadata) json = JSON.generate data if json.nil? @character.tell "Nothing to save." @@ -46,10 +44,10 @@ end nil end def flush - html_to_ansi(super) + Gamefic::Text::Html::Conversions.html_to_ansi(super) end end end