Sha256: 38de6acc5e50ecb3ba2f12572ebed20b6da4f325106f29669aabb5e81d13883b

Contents?: true

Size: 367 Bytes

Versions: 14

Compression:

Stored size: 367 Bytes

Contents

module DeepCover
  module Node::Mixin
    module IsStatement
      def self.included(base)
        base.has_child_handler('is_%{name}_statement')
      end

      def is_statement
        parent.is_child_statement(self)
      end

      # Default child rewriting rule
      def is_child_statement(child, name=nil)
        :if_incompatible
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
deep-cover-0.1.14 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.13 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.12 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.11 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.10 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.9 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.8 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.7 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.6 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.5 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.4 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.3 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.2 lib/deep_cover/node/mixin/is_statement.rb
deep-cover-0.1.1 lib/deep_cover/node/mixin/is_statement.rb