lib/data_miner/process.rb in data_miner-1.1.4 vs lib/data_miner/process.rb in data_miner-1.1.5
- old
+ new
@@ -18,17 +18,10 @@
def resource
config.resource
end
def inspect
- str = %{<#Process(#{resource})}
- if block_description
- str << %{ called block "#{block_description}"}
- else
- str << %{ called method :#{method_id}}
- end
- str << ">"
- str
+ %{#<DataMiner::Process(#{resource}) #{block_description || method_id}>}
end
def run
if blk
blk.call