Sha256: f1fc07fd3ffc1dd3a5cd10872698f3281ee3398e208f65a784856498451cd718

Contents?: true

Size: 215 Bytes

Versions: 3

Compression:

Stored size: 215 Bytes

Contents

class Module

  #
  def attr_inheritable_reader(name, default)
    copy_inheritor(name, default)
    module_eval(<<-EOS, __FILE__, __LINE__)
      def #{name}
        self.class.#{name}
      end
    EOS
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-2.9.0 lib/tour/facets/module/attr_inheritor.rb
facets-2.9.0.pre.2 lib/tour/facets/module/attr_inheritor.rb
facets-2.9.0.pre.1 lib/tour/facets/module/attr_inheritor.rb