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.



22
23
24
# File 'lib/irb/cmd/nop.rb', line 22

def initialize(conf)
	@irb_context = conf
end

Instance Attribute Details

#irb_contextObject (readonly)

Returns the value of attribute irb_context



26
27
28
# File 'lib/irb/cmd/nop.rb', line 26

def irb_context
  @irb_context
end

Class Method Details

.execute(conf, *opts) ⇒ Object



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

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

Instance Method Details

#execute(*opts) ⇒ Object



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

def execute(*opts)
	#nop
end

#irbObject



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

def irb
	@irb_context.irb
end