提交 11fecafc 编写于 作者: S Santosh Wadghule

[ci skip] Used 'instance_variables' in example for consistency.

- Found that checking instance_variables elements using string object
  gives us 'false' value.
  `instance_variables.include? "@articles" # => false`
- Used only 'instance_variables' instead of using '.include?' on it. So
  that it will return recent instance variables list.
上级 efd3d20d
......@@ -531,8 +531,11 @@ command later in this guide).
And then ask again for the instance_variables:
```
(byebug) instance_variables.include? "@articles"
true
(byebug) instance_variables
[:@_action_has_layout, :@_routes, :@_headers, :@_status, :@_request,
:@_response, :@_env, :@_prefixes, :@_lookup_context, :@_action_name,
:@_response_body, :@marked_for_same_origin_verification, :@_config,
:@articles]
```
Now `@articles` is included in the instance variables, because the line defining it
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册