Class: Radius::ParseTag
- Inherits:
-
Object
- Object
- Radius::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.
3 4 5 |
# File 'lib/radius/parsetag.rb', line 3 def initialize(&b) @block = b end |
Instance Method Details
#on_parse(&b) ⇒ Object
7 8 9 |
# File 'lib/radius/parsetag.rb', line 7 def on_parse(&b) @block = b end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/radius/parsetag.rb', line 11 def to_s @block.call(self) end |