Skip to content

anewusername1/unfickle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This allows for better constant management. Use it like so:
  class MyClass
    set_const :read, 1
    set_const :write, 2
  end

You can then reference it directly like so:

  MyClass::READ

Unfickle gives you the ability to traverse through your constants by calling 
  MyClass.each_constant {|constant,constant_value| dosomething(constant, constant_value) }

About

change the way you use constants

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages