Module: Rexport::DataFields

Extended by:
ActiveSupport::Concern
Defined in:
lib/rexport/data_fields.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#export(*methods) ⇒ Object

Return an array of formatted export values for the passed methods



18
19
20
21
22
23
24
# 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_fieldObject

Returns string indicating this field is undefined



27
28
29
# File 'lib/rexport/data_fields.rb', line 27

def undefined_rexport_field
  "UNDEFINED EXPORT FIELD"
end