Object
Proxy into the Applet‘s signature for a given action.
Create a new proxy into the given klass‘s Signature for the specified action_name.
# File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 150
150: def initialize( action_name, klass )
151: @action_name = action_name.to_s.intern
152: @signature = klass.signature
153: @signature[:templates] ||= {}
154: @signature[:validator_profiles] ||= {}
155: end
Get the template associated with the same name as the proxied action.
# File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 160
160: def template
161: @signature[:templates][@action_name]
162: end
Set the template associated with the same name as the proxied action to tmpl.
# File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 167
167: def template=( tmpl )
168: @signature[:templates][@action_name] = tmpl
169: end
Get the validator profile associated with the same name as the proxied action.
# File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 174
174: def validator_profile
175: @signature[:validator_profiles][@action_name]
176: end
Set the validator profile associated with the same name as the proxied action to hash.
# File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 181
181: def validator_profile=( hash )
182: @signature[:validator_profiles][@action_name] = hash
183: end
--- SEC00017
--- ""
---
- methods:
- visibility: public
aref: M000584
name: new
sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 150</span>\n\
150: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">initialize</span>( <span class=\"ruby-identifier\">action_name</span>, <span class=\"ruby-identifier\">klass</span> )\n\
151: <span class=\"ruby-ivar\">@action_name</span> = <span class=\"ruby-identifier\">action_name</span>.<span class=\"ruby-identifier\">to_s</span>.<span class=\"ruby-identifier\">intern</span>\n\
152: <span class=\"ruby-ivar\">@signature</span> = <span class=\"ruby-identifier\">klass</span>.<span class=\"ruby-identifier\">signature</span>\n\
153: <span class=\"ruby-ivar\">@signature</span>[<span class=\"ruby-identifier\">:templates</span>] <span class=\"ruby-operator\">||=</span> {}\n\
154: <span class=\"ruby-ivar\">@signature</span>[<span class=\"ruby-identifier\">:validator_profiles</span>] <span class=\"ruby-operator\">||=</span> {}\n\
155: <span class=\"ruby-keyword kw\">end</span>"
m_desc: |-
<p>
Create a <a href="SigProxy.html#M000584">new</a> proxy into the given
<tt>klass</tt>‘s Signature for the specified <tt>action_name</tt>.
</p>
params: ( action_name, klass )
category: Class
type: Public
- methods:
- visibility: public
aref: M000585
name: template
sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 160</span>\n\
160: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">template</span>\n\
161: <span class=\"ruby-ivar\">@signature</span>[<span class=\"ruby-identifier\">:templates</span>][<span class=\"ruby-ivar\">@action_name</span>]\n\
162: <span class=\"ruby-keyword kw\">end</span>"
m_desc: |-
<p>
Get the <a href="SigProxy.html#M000585">template</a> associated with the
same name as the proxied action.
</p>
params: ()
- visibility: public
aref: M000586
name: template=
sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 167</span>\n\
167: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">template=</span>( <span class=\"ruby-identifier\">tmpl</span> )\n\
168: <span class=\"ruby-ivar\">@signature</span>[<span class=\"ruby-identifier\">:templates</span>][<span class=\"ruby-ivar\">@action_name</span>] = <span class=\"ruby-identifier\">tmpl</span>\n\
169: <span class=\"ruby-keyword kw\">end</span>"
m_desc: |-
<p>
Set the <a href="SigProxy.html#M000585">template</a> associated with the
same name as the proxied action to <tt>tmpl</tt>.
</p>
params: ( tmpl )
- visibility: public
aref: M000587
name: validator_profile
sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 174</span>\n\
174: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">validator_profile</span>\n\
175: <span class=\"ruby-ivar\">@signature</span>[<span class=\"ruby-identifier\">:validator_profiles</span>][<span class=\"ruby-ivar\">@action_name</span>]\n\
176: <span class=\"ruby-keyword kw\">end</span>"
m_desc: |-
<p>
Get the validator profile associated with the same name as the proxied
action.
</p>
params: ()
- visibility: public
aref: M000588
name: validator_profile=
sourcecode: " <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/arrow/applet.rb, line 181</span>\n\
181: <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">validator_profile=</span>( <span class=\"ruby-identifier\">hash</span> )\n\
182: <span class=\"ruby-ivar\">@signature</span>[<span class=\"ruby-identifier\">:validator_profiles</span>][<span class=\"ruby-ivar\">@action_name</span>] = <span class=\"ruby-identifier\">hash</span>\n\
183: <span class=\"ruby-keyword kw\">end</span>"
m_desc: |-
<p>
Set the validator profile associated with the same name as the proxied
action to <tt>hash</tt>.
</p>
params: ( hash )
category: Instance
type: Public
---
Generated with the Darkfish Rdoc Generator.