public Method

Class.class_inheritable_reader(*syms)

There's no documentation for this item.

Source Code

# File merb/core_ext/class.rb, line 52
def class_inheritable_reader(*syms)
  syms.each do |sym|
    next if sym.is_a?(Hash)
    class_eval "def self.\#{sym}\nread_inheritable_attribute(:\#{sym})\nend\n\ndef \#{sym}\nself.class.\#{sym}\nend\n"
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.