Class: Warg::Localhost::BlockProxy
- Inherits:
-
Object
- Object
- Warg::Localhost::BlockProxy
- Defined in:
- lib/warg.rb
Instance Method Summary collapse
-
#initialize(banner, &block) ⇒ BlockProxy
constructor
A new instance of BlockProxy.
- #to_proc ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(banner, &block) ⇒ BlockProxy
Returns a new instance of BlockProxy.
605 606 607 608 |
# File 'lib/warg.rb', line 605 def initialize(, &block) @banner = @block = block end |
Instance Method Details
#to_proc ⇒ Object
614 615 616 |
# File 'lib/warg.rb', line 614 def to_proc @block end |
#to_s ⇒ Object
610 611 612 |
# File 'lib/warg.rb', line 610 def to_s @banner.dup end |