Sha256: a5b3ff9010263839c80b229fedc1cd90c8757367ae9080beb1376b802044be2b

Contents?: true

Size: 574 Bytes

Versions: 9

Compression:

Stored size: 574 Bytes

Contents

# UNDER DEVELOPMENT!!

require_relative "../logger"

module Rb2HamlExporter
  def self.export(filename)
    check_file filename
    rbcontent = File.read(filename)
    puts rbcontent
  end

  def self.check_file(filename)
    unless File.extname(filename).casecmp(".rb").zero?
      Logger.error "Rb2HamlExporter: File name error #{filename}"
      exit 1
    end
    unless File.exist? filename
      Logger.error "Rb2HamlExporter: File #{filename} not found!"
      exit 1
    end
  end

  class Map
  end
end

Rb2HamlExporter.export("docs/examples/home/rb/furniture.rb")

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
asker-tool-2.9.4 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.9.3 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.9.2 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.9.1 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.9.0 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.8.0 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.7.2 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.7.1 lib/asker/formatter/rb2haml_formatter.rb
asker-tool-2.7.0 lib/asker/formatter/rb2haml_formatter.rb