Class: Warg::Localhost::BlockProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/warg.rb

Instance Method Summary collapse

Constructor Details

#initialize(banner, &block) ⇒ BlockProxy

Returns a new instance of BlockProxy.



605
606
607
608
# File 'lib/warg.rb', line 605

def initialize(banner, &block)
  @banner = banner
  @block = block
end

Instance Method Details

#to_procObject



614
615
616
# File 'lib/warg.rb', line 614

def to_proc
  @block
end

#to_sObject



610
611
612
# File 'lib/warg.rb', line 610

def to_s
  @banner.dup
end