Sha256: 61bde7aa3be744e932ac90d4e72993a55c862489ceaa69bfb0e005d713f090be

Contents?: true

Size: 720 Bytes

Versions: 28

Compression:

Stored size: 720 Bytes

Contents

module Kernel

  def sender
    sender_properties= Hash.new
    # File system
    begin
      # folder create from caller
      begin
        folder= caller[0].split(".{rb,ru}:").first.split(File::SEPARATOR)
        sender_properties[:file]= folder[(folder.count-1)].split(':')[0]
        folder= folder[0..(folder.count-2)]
      end
      # after formatting
      begin

        if !File.directory?(folder.join(File::SEPARATOR))
          folder.pop
        end
        folder= File.join(folder.join(File::SEPARATOR))
        if folder != File.expand_path(folder)
          folder= File.expand_path(folder)
        end

      end
      sender_properties[:folder]= folder
    end
    return sender_properties
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
procemon-1.2.1 lib/procemon/extra/sender.rb
procemon-1.2.0 lib/procemon/extra/sender.rb
procemon-1.1.1 lib/procemon/extra/sender.rb
procemon-1.0.4 lib/procemon/extra/sender.rb
procemon-1.0.3 lib/procemon/extra/sender.rb
procemon-1.0.1 lib/procemon/extra/sender.rb
procemon-1.0.0 lib/procemon/extra/sender.rb
procemon-0.9.1 lib/procemon/extra/sender.rb
procemon-0.9.0 lib/procemon/extra/sender.rb
procemon-0.8.1 lib/procemon/extra/sender.rb
procemon-0.8.0 lib/procemon/extra/sender.rb
procemon-0.7.0 lib/procemon/function/sender.rb
procemon-0.6.3 lib/procemon/function/sender.rb
procemon-0.6.2 lib/procemon/function/sender.rb
procemon-0.6.1 lib/procemon/function/sender.rb
procemon-0.5.0 lib/procemon/function/sender.rb
procemon-0.4.5 lib/procemon/function/sender.rb
procemon-0.4.4 lib/procemon/function/sender.rb
procemon-0.4.3 lib/procemon/function/sender.rb
procemon-0.4.2 lib/procemon/function/sender.rb