Sha256: 91c518de37029251cbdf8a160e0550dafa99e899f9c9dfcc6afa4a0fb182ff94

Contents?: true

Size: 204 Bytes

Versions: 3

Compression:

Stored size: 204 Bytes

Contents

module ToFactory
  module Parsing
    class OldSyntax < Syntax
      def header?
        false
      end

      def parent_from(x)
        x[1][-1][-1][-1] rescue name_from(x)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
to_factory-0.2.1 lib/to_factory/parsing/old_syntax.rb
to_factory-0.2.0 lib/to_factory/parsing/old_syntax.rb
to_factory-0.1.1 lib/to_factory/parsing/old_syntax.rb