Class: ODDB::View::PointerValue

Inherits:
HtmlGrid::Value
  • Object
show all
Defined in:
src/view/pointervalue.rb

Direct Known Subclasses

PointerLink

Constant Summary

CSS_CLASS =
'list'

Instance Method Summary (collapse)

Instance Method Details

- (Object) init



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'src/view/pointervalue.rb', line 11

def init
  value = @name
  if(@model.respond_to?(@name))
    method = @model.method(@name)
    args = (method.arity == 1) ? [@lookandfeel.language] : []
    value = @model.send(@name, *args)
  end
  if(value.is_a? Symbol)
    @value = @lookandfeel.lookup(value)
  else
    @value = value
  end
end