Method: Wardite::Instance#function_section

Defined in:
lib/wardite.rb

#function_sectionObject



170
171
172
173
174
175
176
177
178
179
# File 'lib/wardite.rb', line 170

def function_section
  sec = @sections.find{|s| s.code == Const::SectionFunction }
  if !sec
    return nil
  end
  if !sec.is_a?(FunctionSection)
    raise(GenericError, "instance doesn't have required section")
  end
  sec
end