Benign netbsd Download

lib/slop.rb

Ruby instance_eval callRuby defines methods dynamically
SHA-256d4fc1cd42b35089ab938d4f791565c23ad499c516b65e3bda65acf87162f73cd

Evidence

English function-word token "the" lines 12–16
12:30… Error; end
13
14 # Raised when an option specifies the `:match` attribute and this
15 # options argument does not match this regexp
16 class InvalidArgu …
English function-word token "that" lines 74–76
74:11… When true, this option is considered mandatory. That is, when not
75 # supplied, Slop will raise a `MissingOptionError`
76 def initialize(slop …
Ruby instance_eval call lines 387–395
387:24… ons
388
389 if block_given?
390 block.arity == 1 ? yield(self) : instance_eval(&block)
391 end
392
393 if sloptions[:help]
394 on :h, :help, 'Print this help message', :tail => true do
395 @io.puts help
Ruby interpreter command invocation lines 403–412
403:47…
404 # @example
405 # opts = Slop.parse do
406 # banner "Usage - ruby foo.rb [arguments]"
407 # end
408 # @return [String] The current banner
⋯4 lines
Ruby defines methods dynamically lines 669–680
669:36… omp('?')
670
671 (class << self; self; end).instance_eval do
672 define_method(meth) { present }
673 end
674
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.