Module: Module::MultipleAttributes

Included in:
Module
Defined in:
lib/vex/base/object/multiple_attributes.rb

Defined Under Namespace

Modules: Etest

Instance Method Summary collapse

Instance Method Details

#attributes(*args) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/vex/base/object/multiple_attributes.rb', line 3

def attributes(*args)
  writable_flag = args.last
  if writable_flag != true && writable_flag != false
    writable_flag = false
  else
    args.pop
  end

  args.each do |arg|
    attr arg, writable_flag
  end
end