Sha256: 05afd44d5825646fdf78bbfdab17952480ebb24d595aa4bb4cd7ab3a7386c66b

Contents?: true

Size: 445 Bytes

Versions: 46

Compression:

Stored size: 445 Bytes

Contents

module Liquidscript
  module Compiler
    class Base

      # Responds to all methods with `nil`.
      class Blank

        # Respond to all methods, with `nil`.
        #
        # @return [nil]
        def method_missing(*_, &block)
          nil
        end

        # Tells Ruby that we respond to all methods.
        #
        # @return [true]
        def respond_to_missing?(_, __)
          true
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
liquidscript-0.11.0.rc1 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.10.4 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.10.3 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.10.2 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.10.1 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.10.0 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.9.2 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.9.1 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.9.0 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.8.2 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.8.1 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.8.0 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.12 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.11 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.10 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.9 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.8 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.7 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.6 lib/liquidscript/compiler/base/blank.rb
liquidscript-0.7.5 lib/liquidscript/compiler/base/blank.rb