module Rexport::DataFields

Public Instance Methods

export(*methods) click to toggle source

Return an array of formatted export values for the passed methods

# File lib/rexport/data_fields.rb, line 18
def export(*methods)
  methods.flatten.map do |method|
    Rexport::Formatter.convert(instance_eval(method))
  rescue NameError
    ""
  end
end
undefined_rexport_field() click to toggle source

Returns string indicating this field is undefined

# File lib/rexport/data_fields.rb, line 27
def undefined_rexport_field
  "UNDEFINED EXPORT FIELD"
end