Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

mruby-named-constants

MRuby library that allows constants of Module | Class set via const_set to return name when inspect or to_s is called on them

  ::Object.const_set :A, Class.new

  ::A.const_set :B, Class.new()
  ::A.const_set :C, Module.new()
  
  p ::A  # => A
  p A::B # => A::B
  p A::C # => A::C

About

MRuby library that allows constants defined by const_set(Class.new) to return the constant name when inspected

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.