class Interscript::Node::Rule::Run
Attributes
reverse_run[RW]
stage[RW]
Public Class Methods
new(stage, reverse_run: nil)
click to toggle source
# File lib/interscript/node/rule/run.rb, line 3 def initialize stage, reverse_run: nil @stage = stage @reverse_run = reverse_run end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
Interscript::Node::Rule#==
# File lib/interscript/node/rule/run.rb, line 19 def ==(other) super && self.stage == other.stage end
inspect()
click to toggle source
# File lib/interscript/node/rule/run.rb, line 23 def inspect out = "run #{@stage.inspect}" out += ", reverse_run: #{@reverse_run.inspect}" unless reverse_run.nil? out end
reverse()
click to toggle source
# File lib/interscript/node/rule/run.rb, line 13 def reverse Interscript::Node::Rule::Run.new(stage, reverse_run: reverse_run.nil? ? nil : !reverse_run ) end
to_hash()
click to toggle source
# File lib/interscript/node/rule/run.rb, line 8 def to_hash { :class => self.class.to_s, :stage => self.stage.to_hash } end