Sha256: 8ee7ab5f87a65f76f509de881a662d75495c8136c62b97d27a00779582363c77

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require_relative "base_language.rb"

module Docks
  module Languages
    class YAML < Base
      def self.type; Docks::Types::Languages::STUB end
      def self.extensions; %w(yml yaml) end

      def initialize
        require "yaml"
      end

      def load_stub(file)
        ::YAML::load_file(file)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
docks_app-0.0.3 lib/docks/languages/yaml_language.rb
docks_app-0.0.2 lib/docks/languages/yaml_language.rb
docks_app-0.0.1 lib/docks/languages/yaml_language.rb