Method: Wardite::Instance#global_section
- Defined in:
- lib/wardite.rb
#global_section ⇒ Object
134 135 136 137 138 139 140 141 142 143 |
# File 'lib/wardite.rb', line 134 def global_section sec = @sections.find{|s| s.code == Const::SectionGlobal } if !sec return nil end if !sec.is_a?(GlobalSection) raise(GenericError, "instance doesn't have required section") end sec end |