Module: XamplGenerator::OptionsAsChild
- Defined in:
- lib/xamplr-gen/xampl-hand-generated.rb
Instance Method Summary collapse
- #add_options(options) ⇒ Object
- #init_options_as_child ⇒ Object
- #new_options {|options| ... } ⇒ Object (also: #ensure_options)
- #options_child ⇒ Object (also: #options)
- #options_child=(v) ⇒ Object (also: #options=)
- #remove_options(options) ⇒ Object
Instance Method Details
#add_options(options) ⇒ Object
319 320 321 322 323 324 325 326 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 319 def () accessed @children << @options_child << .add_parent(self) changed return end |
#init_options_as_child ⇒ Object
315 316 317 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 315 def @options_child = [] end |
#new_options {|options| ... } ⇒ Object Also known as: ensure_options
328 329 330 331 332 333 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 328 def accessed = Options.new yield() if block_given? return () end |
#options_child ⇒ Object Also known as: options
302 303 304 305 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 302 def accessed @options_child end |
#options_child=(v) ⇒ Object Also known as: options=
307 308 309 310 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 307 def (v) accessed @options_child = v end |
#remove_options(options) ⇒ Object
337 338 339 340 341 |
# File 'lib/xamplr-gen/xampl-hand-generated.rb', line 337 def () accessed @options_child.delete() @children.delete() end |