Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

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")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #module #function #main #ruby
ADD COMMENT
Topic
Name
9+8 =