lib/exporter/configuration.rb in exporter-0.0.2 vs lib/exporter/configuration.rb in exporter-0.0.3
- old
+ new
@@ -7,10 +7,10 @@
def register(data_type, export_type, exporter)
@exporters[data_type] = {export_type => exporter}
end
def can_export?(data_type, export_type)
- (@exporters[data_type] && @exporters[data_type][export_type]) ? true : false
+ @exporters[data_type] && @exporters[data_type][export_type]
end
def exporter(data_type, export_type)
can_export?(data_type, export_type) ? @exporters[data_type][export_type] : nil
end
\ No newline at end of file