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.
604 605 606 607 |
# File 'lib/warg.rb', line 604 def initialize(, &block) @banner = @block = block end |
Instance Method Details
#to_proc ⇒ Object
613 614 615 |
# File 'lib/warg.rb', line 613 def to_proc @block end |
#to_s ⇒ Object
609 610 611 |
# File 'lib/warg.rb', line 609 def to_s @banner.dup end |