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.


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

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

Instance Method Details

#to_procObject


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

def to_proc
  @block
end

#to_sObject


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

def to_s
  @banner.dup
end