Class: ODDB::View::PointerLink

Inherits:
PointerValue show all
Defined in:
src/view/pointervalue.rb

Constant Summary

Constants inherited from PointerValue

CSS_CLASS

Instance Method Summary (collapse)

Instance Method Details

- (Object) href=(href)



34
35
36
# File 'src/view/pointervalue.rb', line 34

def href=(href)
  @attributes['href'] = href
end

- (Object) init



26
27
28
29
30
# File 'src/view/pointervalue.rb', line 26

def init
  super
  arguments = {'pointer'  => @model.pointer.to_s}
  @attributes['href'] = @lookandfeel._event_url(:resolve, arguments)
end

- (Object) to_html(context)



31
32
33
# File 'src/view/pointervalue.rb', line 31

def to_html(context)
  context.a(@attributes) { @value }
end