lib/gloo/objs/system/file_handle.rb in gloo-1.4.2 vs lib/gloo/objs/system/file_handle.rb in gloo-2.0.0

- old
+ new

@@ -5,11 +5,11 @@ # require 'tty-pager' module Gloo module Objs - class FileHandle < GlooLang::Core::Obj + class FileHandle < Gloo::Core::Obj KEYWORD = 'file'.freeze KEYWORD_SHORT = 'dir'.freeze # @@ -45,11 +45,11 @@ # Open the file in the default application for the file type. # def msg_open return unless value && File.exist?( value ) - cmd = GlooLang::Core::GlooSystem.open_for_platform + cmd = Gloo::Core::GlooSystem.open_for_platform cmd_with_param = "#{cmd} \"#{value}\"" `#{cmd_with_param}` end # @@ -77,11 +77,11 @@ def msg_read return unless value && File.file?( value ) data = File.read( value ) if @params&.token_count&.positive? - pn = GlooLang::Core::Pn.new( @engine, @params.first ) + pn = Gloo::Core::Pn.new( @engine, @params.first ) o = pn.resolve o.set_value data else @engine.heap.it.set_to data end @@ -93,10 +93,10 @@ def msg_write data = '' return unless value if @params&.token_count&.positive? - expr = GlooLang::Expr::Expression.new( @engine, @params.tokens ) + expr = Gloo::Expr::Expression.new( @engine, @params.tokens ) data = expr.evaluate end File.write( value, data ) end