Method: Module#attr_internal_reader

Defined in:
motion/core_ext/module/attr_internal.rb

#attr_internal_reader(*attrs) ⇒ Object

Declares an attribute reader backed by an internally-named instance variable.



3
4
5
# File 'motion/core_ext/module/attr_internal.rb', line 3

def attr_internal_reader(*attrs)
  attrs.each {|attr_name| attr_internal_define(attr_name, :reader)}
end