Class: Interview::MetaControl

Inherits:
Control
  • Object
show all
Defined in:
lib/interview/meta_control.rb

Instance Attribute Summary collapse

Attributes inherited from Control

#parent

Instance Method Summary collapse

Methods inherited from Control

#ancestors, #build, #build_with_params, #find_attribute, #find_attribute!, #initialize, #set_attributes, #set_defaults

Constructor Details

This class inherits a constructor from Interview::Control

Instance Attribute Details

#pointerObject

Returns the value of attribute pointer.



4
5
6
# File 'lib/interview/meta_control.rb', line 4

def pointer
  @pointer
end

#skipObject (readonly)

Returns the value of attribute skip.



5
6
7
# File 'lib/interview/meta_control.rb', line 5

def skip
  @skip
end

Instance Method Details

#build_child(b, control, &block) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/interview/meta_control.rb', line 7

def build_child(b, control, &block)
  @skip = true
  if @pointer
    @pointer.build_child(b, control, &block)
  else
    super
  end
  @skip = false
end