Class: Radius::TagDefinitions::TagFactory

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

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ TagFactory

Returns a new instance of TagFactory


4
5
6
# File 'lib/radius/tag_definitions.rb', line 4

def initialize(context)
  @context = context
end

Instance Method Details

#define_tag(name, options, &block) ⇒ Object


8
9
10
11
12
13
# File 'lib/radius/tag_definitions.rb', line 8

def define_tag(name, options, &block)
  options = prepare_options(name, options)
  validate_params(name, options, &block)
  construct_tag_set(name, options, &block)
  expose_methods_as_tags(name, options)
end