Sha256: a7cb9e0705ff70bd65de0995d39ba8f8f5eebd38ba07326559013233c9a58a06

Contents?: true

Size: 198 Bytes

Versions: 2

Compression:

Stored size: 198 Bytes

Contents

# mixin, convenience operator for method reflection
# inspired by Smalltalk
class Class
  def >>(symbol)
    Mirrors.reflect(method(symbol))
  end

  def reflect
    Mirrors.reflect(self)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mirrors-0.0.2 lib/mirrors/class_mixin.rb
mirrors-0.0.1 lib/mirrors/class_mixin.rb