Class: Interview::MetaControl
- Defined in:
- lib/interview/meta_control.rb
Instance Attribute Summary collapse
-
#pointer ⇒ Object
Returns the value of attribute pointer.
-
#skip ⇒ Object
readonly
Returns the value of attribute skip.
Attributes inherited from Control
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
#pointer ⇒ Object
Returns the value of attribute pointer.
4 5 6 |
# File 'lib/interview/meta_control.rb', line 4 def pointer @pointer end |
#skip ⇒ Object (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 |