vigetlabs/colonel_kurtz_ruby

View on GitHub
lib/colonel_kurtz/block/type.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ColonelKurtz
  class Block


    private

    class Type

      attr_reader :type

      def initialize(type)
        @type = type
      end

      def formatted_type
        type.gsub("-", "_").downcase
      end

      def to_sym
        formatted_type.to_sym
      end
    end
  end
end