Skip to content

meh/refining

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Refining

Stupid and ugly method refining, used in failirc and packø

class String
  refine_method :length do |old|
    puts old.call
    old.call
  end
end

"lol".length # => this will puts the length and return it

You can also refine methods on already created objects or refine class methods.

About

Easily refine methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages