lib/livetext/userapi.rb in livetext-0.9.33 vs lib/livetext/userapi.rb in livetext-0.9.35
- old
+ new
@@ -3,10 +3,12 @@
# Encapsulate the UserAPI as a class
class Livetext::UserAPI
+ include ::Livetext::Standard
+
KBD = File.new("/dev/tty", "r")
TTY = File.new("/dev/tty", "w")
DotSpace = ". " # Livetext::Sigil + Livetext::Space
@@ -31,9 +33,11 @@
@live
end
def include_file(file)
api.data = file
+ api.args = [file]
+STDERR.puts "incfile: #{api.methods.sort.inspect}\n "
api.dot_include
end
def expand_variables(str)
@expander.expand_variables(str)