Method: ACTV::Base.attr_reader
- Defined in:
- lib/actv/base.rb
.self.attr_reader(attr) ⇒ Object .self.attr_reader(attrs) ⇒ Object
Define methods that retrieve the value from an initialized instance variable Hash, using the attribute as a key
15 16 17 18 19 20 |
# File 'lib/actv/base.rb', line 15 def self.attr_reader(*attrs) attrs.each do |attribute| define_attribute_method(attribute) define_predicate_method(attribute) end end |