Answers for "using module function in main ruby"

0

using module function in main ruby

module UsefulThings
  def self.get_file; ...
  def self.delete_file; ...

  def self.format_text(x); ...
end
    
#Then 
UsefulThings.format_text("xxx")
Posted by: Guest on January-01-2022

Browse Popular Code Answers by Language