Module: AttrPublicReadPrivateWrite

Included in:
ArrayType::Proxy, ContractType::Proxy, MappingType::Proxy, TypedVariable
Defined in:
lib/0xfacet/typed/attr_public_read_private_write.rb

Instance Method Summary collapse

Instance Method Details

#attr_public_read_private_write(*names) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/0xfacet/typed/attr_public_read_private_write.rb', line 2

def attr_public_read_private_write(*names)
  attr_accessor(*names)

  names.each do |name|
    private "#{name}="
  end
end