Sha256: 26e59b1b75bbe76e6e30a5dad2b1c234523b988c3c4aebfaf68504c3452b5b4c

Contents?: true

Size: 277 Bytes

Versions: 9

Compression:

Stored size: 277 Bytes

Contents

module Furnace
  module ANF
    class IfNode < Node
      attr_reader :condition

      def initialize(graph, condition)
        super(graph)

        @condition = condition
      end

      def to_human_readable
        "if\n#{humanize @condition}"
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
furnace-0.1.1 lib/furnace/anf/if_node.rb
furnace-0.1.0 lib/furnace/anf/if_node.rb
furnace-0.0.8 lib/furnace/anf/if_node.rb
furnace-0.0.7 lib/furnace/anf/if_node.rb
furnace-0.0.6 lib/furnace/anf/if_node.rb
furnace-0.0.4 lib/furnace/anf/if_node.rb
furnace-0.0.3 lib/furnace/anf/if_node.rb
furnace-0.0.2 lib/furnace/anf/if_node.rb
furnace-0.0.1 lib/furnace/anf/if_node.rb