Class: IRB::ExtendCommand::Nop

Inherits:
Object
  • Object
show all
Defined in:
lib/irb/cmd/nop.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(conf) ⇒ Nop

Returns a new instance of Nop.



30
31
32
# File 'lib/irb/cmd/nop.rb', line 30

def initialize(conf)
  @irb_context = conf
end

Instance Attribute Details

#irb_contextObject (readonly)

Returns the value of attribute irb_context.



34
35
36
# File 'lib/irb/cmd/nop.rb', line 34

def irb_context
  @irb_context
end

Class Method Details

.execute(conf, *opts, &block) ⇒ Object



19
20
21
22
# File 'lib/irb/cmd/nop.rb', line 19

def self.execute(conf, *opts, **kwargs, &block)
  command = new(conf)
  command.execute(*opts, **kwargs, &block)
end

Instance Method Details

#execute(*opts) ⇒ Object



40
41
42
# File 'lib/irb/cmd/nop.rb', line 40

def execute(*opts)
  #nop
end

#irbObject



36
37
38
# File 'lib/irb/cmd/nop.rb', line 36

def irb
  @irb_context.irb
end