Class: RubyToBlock::Block::Null
- Defined in:
- app/models/concerns/ruby_to_block.rb
Instance Attribute Summary
Attributes inherited from Base
#fields, #parent, #sibling, #statements, #values
Instance Method Summary collapse
Methods inherited from Base
#[], #add_statement, #indent?, #indent_level, #initialize, #inline?, #type
Constructor Details
This class inherits a constructor from RubyToBlock::Block::Base
Instance Method Details
#null? ⇒ Boolean
369 370 371 |
# File 'app/models/concerns/ruby_to_block.rb', line 369 def null? !@sibling end |
#to_xml(parent) ⇒ Object
363 364 365 366 367 |
# File 'app/models/concerns/ruby_to_block.rb', line 363 def to_xml(parent) return nil unless @sibling @sibling.to_xml(parent) end |