Method: PlainTextExtractorDSL#extract_content_with
- Defined in:
- lib/picolena/templates/lib/plain_text_extractor_dsl.rb
#extract_content_with(command_as_hash_or_string = nil, &block) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/picolena/templates/lib/plain_text_extractor_dsl.rb', line 53 def extract_content_with(command_as_hash_or_string=nil,&block) #TODO: Find a better way to manage platforms, and include OS X, Vista, BSD... @command=case command_as_hash_or_string when String command_as_hash_or_string when Hash command_for_current_platform(command_as_hash_or_string) else block || raise("No command defined for this extractor: #{description}") end end |