Class: Radius::ParseTag

Inherits:
Object
  • Object
show all
Defined in:
lib/radius/parse_tag.rb

Overview

:nodoc:

Direct Known Subclasses

ParseContainerTag

Instance Method Summary collapse

Constructor Details

#initialize(&b) ⇒ ParseTag

Returns a new instance of ParseTag


3
4
5
# File 'lib/radius/parse_tag.rb', line 3

def initialize(&b)
  @block = b
end

Instance Method Details

#on_parse(&b) ⇒ Object


7
8
9
# File 'lib/radius/parse_tag.rb', line 7

def on_parse(&b)
  @block = b
end

#to_sObject


11
12
13
# File 'lib/radius/parse_tag.rb', line 11

def to_s
  @block.call(self) if @block
end