Sha256: 2237a1bcc414f1ed89f76e95360c7172998e6382beb374d21f647f7b861ee05c
Contents?: true
Size: 967 Bytes
Versions: 1
Compression:
Stored size: 967 Bytes
Contents
## # MAbbre allows a group of methods in a Class or a Module to be accessed using an abbreviated form. These methods can # be defined anywhere within a hierarchy of inclusion and/or inheritance. # # module M # extend MAbbre::Mixin # allow_abbreviated do # def very_long_method # "This method has a very long name." # end # end # end # # class C # include M # allow_abbreviated do # def another_long_method # "Another method with a long name." # end # end # end # # class D < C # allow_abbreviated do # def yet_another_long_method # "Yet another looong method name." # end # end # end # # o = D.new # o.very #=> "This method has a very long name." # o.another #=> "Another method with a long name." # o.yet #=> "Yet another looong method name." module MAbbre ## # Current version of MAbbre. VERSION = "0.0.1" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mabbre-0.0.1 | lib/mabbre/version.rb |