Class: ParseTag
- Inherits:
-
Object
- Object
- ParseTag
- Defined in:
- lib/radius/parsetag.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(&b) ⇒ ParseTag
constructor
A new instance of ParseTag.
- #on_parse(&b) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(&b) ⇒ ParseTag
Returns a new instance of ParseTag.
2 3 4 |
# File 'lib/radius/parsetag.rb', line 2 def initialize(&b) @block = b end |
Instance Method Details
#on_parse(&b) ⇒ Object
6 7 8 |
# File 'lib/radius/parsetag.rb', line 6 def on_parse(&b) @block = b end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/radius/parsetag.rb', line 10 def to_s @block.call(self) end |