Sha256: d0a5c1083a091ef547691b43730be6d4ffe9531be746450150c5a2722182ade8
Contents?: true
Size: 360 Bytes
Versions: 2
Compression:
Stored size: 360 Bytes
Contents
module Windcharger module Attributes def attributes @__attributes || [] end private def attribute @__windcharger_next_is_attribute = true end def method_added name return unless @__windcharger_next_is_attribute (@__attributes ||= []) << name @__windcharger_next_is_attribute = false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windcharger-0.2.0 | lib/windcharger/attributes.rb |
windcharger-0.1.0 | lib/windcharger/attributes.rb |