Class: Wee::Brush::AnchorTag

Inherits:
GenericTagBrush show all
Includes:
CallbackMixin
Defined in:
lib/wee/html_brushes.rb

Overview


Misc


Constant Summary collapse

HTML_TAG =
'a'.freeze

Instance Attribute Summary

Attributes inherited from Wee::Brush

#canvas, #document

Instance Method Summary collapse

Methods included from CallbackMixin

#call, #callback, #callback_method

Methods inherited from GenericTagBrush

#get_oid, html_attr, #oid, #onclick_callback, #onclick_javascript, #onclick_update_callback, #onclick_update_self_callback, #ondblclick_callback, #with

Methods inherited from Wee::Brush

#close, nesting?, #setup, #with

Constructor Details

#initializeAnchorTag

Returns a new instance of AnchorTag.



670
671
672
# File 'lib/wee/html_brushes.rb', line 670

def initialize
  super(HTML_TAG)
end

Instance Method Details

#__callbackObject



681
682
683
# File 'lib/wee/html_brushes.rb', line 681

def __callback
  url(@canvas.url_for_callback(@callback, :action, @info ? {:info => @info} : {}))
end

#info(info = nil) ⇒ Object



674
675
676
677
# File 'lib/wee/html_brushes.rb', line 674

def info(info=nil)
  @info = info
  self
end