Sha256: 1830b6f8dd335a8f5802183b62a9116f046e605d7dff56803fb57bcbdaf6197e

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Create an attribute method for both getting and setting an instance variable.
- !ruby/struct:SM::Flow::VERB 
  body: "  attr_setter :a\n"
- !ruby/struct:SM::Flow::P 
  body: _is equivalent to_
- !ruby/struct:SM::Flow::VERB 
  body: "  def a(*args)\n    if args.size > 0\n      @a = args[0]\n      self\n    else\n      @a\n    end\n  end\n\n CREDIT: Trans\n"
full_name: Module#attr_setter
is_singleton: false
name: attr_setter
params: (*args)
visibility: public

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
facets-2.4.3 doc/ri/Module/attr_setter-i.yaml
facets-2.4.2 doc/ri/Module/attr_setter-i.yaml