Method: LazyDoc::DSL::ClassMethods#access
- Defined in:
- lib/lazy_doc/dsl.rb
#access(*arguments) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/lazy_doc/dsl.rb', line 25 def access(*arguments) attributes, = extract_from(arguments) if attributes.size == 1 define_access_method_for(attributes[0], ) else define_access_methods_for(attributes) end end |