module SheepAst::LetInspect
Let
inclde module
Public Instance Methods
_do_pry(**options)
click to toggle source
# File lib/sheep_ast/action/let_inspect.rb, line 92 def _do_pry(**options) @count = 1 if @count.nil? @count += 1 ldebug? and ldebug "Entering debug mode, @count = #{@count}" return true end
break(pair, datastore, **options)
click to toggle source
# File lib/sheep_ast/action/let_inspect.rb, line 55 def break(pair, datastore, **options) if !options[:disable] format_dump { ldump "pair = #{pair.inspect}", :yellow } return true end return false end
debug(pair, datastore, **options)
click to toggle source
# File lib/sheep_ast/action/let_inspect.rb, line 80 def debug(pair, datastore, **options) if !options[:disable] && ENV['SHEEP_LET_DISABLE_DEBUG'].nil? binding.pry if T.unsafe(self)._do_pry(**options) # rubocop:disable all end return T.unsafe(self).ret(**options) end
show(pair, datastore, **options)
click to toggle source
# File lib/sheep_ast/action/let_inspect.rb, line 34 def show(pair, datastore, **options) if !options[:disable] format_dump { ldump "pair = #{pair.inspect}", :lightgreen } end return T.unsafe(self).ret(**options) end