Class: Pry::Command::Ls::Formatter
- Defined in:
- lib/pry/commands/ls/formatter.rb
Direct Known Subclasses
Constants, Globals, InstanceVars, LocalNames, LocalVars, Methods, SelfMethods
Instance Attribute Summary collapse
-
#_pry_ ⇒ Object
readonly
Returns the value of attribute pry.
-
#grep ⇒ Object
writeonly
Sets the attribute grep.
Instance Method Summary collapse
-
#initialize(_pry_) ⇒ Formatter
constructor
A new instance of Formatter.
- #write_out ⇒ Object
Constructor Details
#initialize(_pry_) ⇒ Formatter
Returns a new instance of Formatter.
7 8 9 10 |
# File 'lib/pry/commands/ls/formatter.rb', line 7 def initialize(_pry_) @_pry_ = _pry_ @target = _pry_.current_context end |
Instance Attribute Details
#_pry_ ⇒ Object (readonly)
Returns the value of attribute pry.
5 6 7 |
# File 'lib/pry/commands/ls/formatter.rb', line 5 def _pry_ @_pry_ end |
#grep=(value) ⇒ Object
Sets the attribute grep
4 5 6 |
# File 'lib/pry/commands/ls/formatter.rb', line 4 def grep=(value) @grep = value end |
Instance Method Details
#write_out ⇒ Object
12 13 14 15 |
# File 'lib/pry/commands/ls/formatter.rb', line 12 def write_out return false unless correct_opts? output_self end |