Method: Edfize::Edf#section_units

Defined in:
lib/edfize/edf.rb

#section_units(section) ⇒ Object



98
99
100
101
102
103
104
105
# File 'lib/edfize/edf.rb', line 98

def section_units(section)
  units = HEADER_CONFIG[section][:units].to_s
  if units == ""
    ""
  else
    " #{units}" + (instance_variable_get("@#{section}") == 1 ? "" : "s")
  end
end