Class: ODDB::View::StubPointerStepsModel

Inherits:
Object
  • Object
show all
Defined in:
test/test_view/pointersteps.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubPointerStepsModel) initialize

A new instance of StubPointerStepsModel



15
16
17
# File 'test/test_view/pointersteps.rb', line 15

def initialize
  @pointer_descr_enable = true
end

Instance Attribute Details

- (Object) ancestors(arg = nil)



18
19
20
# File 'test/test_view/pointersteps.rb', line 18

def ancestors(arg=nil)
  @ancestors
end

- (Object) pointer_descr_enable=(value) (writeonly)

Sets the attribute pointer_descr_enable

Parameters:

  • value

    the value to set the attribute pointer_descr_enable to.



14
15
16
# File 'test/test_view/pointersteps.rb', line 14

def pointer_descr_enable=(value)
  @pointer_descr_enable = value
end

Instance Method Details

- (Object) pointer



31
32
33
# File 'test/test_view/pointersteps.rb', line 31

def pointer
  self
end

- (Object) pointer_descr



21
22
23
# File 'test/test_view/pointersteps.rb', line 21

def pointer_descr
  'bon'
end

- (Boolean) respond_to?(symbol)

Returns:

  • (Boolean)


24
25
26
27
28
29
30
# File 'test/test_view/pointersteps.rb', line 24

def respond_to?(symbol)
  if symbol==:pointer_descr
    @pointer_descr_enable
  else
    super
  end
end