Class: Pry::Command::Ls::Formatter
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/commands/ls/formatter.rb
Direct Known Subclasses
Constants, Globals, InstanceVars, LocalNames, LocalVars, Methods, SelfMethods
Instance Attribute Summary collapse
-
#grep ⇒ Object
writeonly
Sets the attribute grep.
-
#pry_instance ⇒ Object
readonly
Returns the value of attribute pry_instance.
Instance Method Summary collapse
-
#initialize(pry_instance) ⇒ Formatter
constructor
A new instance of Formatter.
- #write_out ⇒ Object
Constructor Details
#initialize(pry_instance) ⇒ Formatter
Returns a new instance of Formatter.
10 11 12 13 14 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/commands/ls/formatter.rb', line 10 def initialize(pry_instance) @pry_instance = pry_instance @target = pry_instance.current_context @default_switch = nil end |
Instance Attribute Details
#grep=(value) ⇒ Object
Sets the attribute grep
7 8 9 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/commands/ls/formatter.rb', line 7 def grep=(value) @grep = value end |
#pry_instance ⇒ Object (readonly)
Returns the value of attribute pry_instance.
8 9 10 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/commands/ls/formatter.rb', line 8 def pry_instance @pry_instance end |
Instance Method Details
#write_out ⇒ Object
16 17 18 19 20 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pry-0.14.2/lib/pry/commands/ls/formatter.rb', line 16 def write_out return false unless correct_opts? output_self end |