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.



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

def initialize(conf)
  @irb_context = conf
end

Instance Attribute Details

#irb_contextObject (readonly)

Returns the value of attribute irb_context.



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

def irb_context
  @irb_context
end

Class Method Details

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



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

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

Instance Method Details

#execute(*opts) ⇒ Object



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

def execute(*opts)
  #nop
end

#irbObject



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

def irb
  @irb_context.irb
end