class Perkins::Build::Shell::Conditional
Public Class Methods
new(condition, *args, &block)
click to toggle source
Calls superclass method
Perkins::Build::Shell::Group::new
# File lib/perkins/build/shell/node.rb, line 95 def initialize(condition, *args, &block) args.unshift(args.last.delete(:then)) if args.last.is_a?(Hash) && args.last[:then] unless args.last.delete(:raw_condition) condition = "[[ #{condition} ]]" end super(*args, &block) @open = Node.new("#{name} #{condition}; then", options) end