lib/slop.rb
Ruby instance_eval callRuby defines methods dynamically
SHA-256d4fc1cd42b35089ab938d4f791565c23ad499c516b65e3bda65acf87162f73cd
MaleculeH₂(DbPo₂)
Evidence
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 …
74:11… When true, this option is considered mandatory. That is, when not
75 # supplied, Slop will raise a `MissingOptionError`
76 def initialize(slop …
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
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
669:36… omp('?')
670
671 (class << self; self; end).instance_eval do
672 define_method(meth) { present }
673 end
674
⋯6 lines