Class: Envandle::Elements::GitSourceBlock

Inherits:
Envandle::Element show all
Defined in:
lib/envandle/elements/git_source_block.rb

Instance Method Summary collapse

Methods inherited from Envandle::Element

#<<, #children, #children_by_type, #dsl, #gemfile, #groups_or_default, #initialize, #parse_string_option, #parse_string_value, #send_to_bundler, #send_to_history

Constructor Details

This class inherits a constructor from Envandle::Element

Instance Method Details

#bundler_argsetsObject



11
12
13
14
15
# File 'lib/envandle/elements/git_source_block.rb', line 11

def bundler_argsets
  @bundler_argsets ||= [].tap do |a|
    a << Argset.new(:git_source, *@args.args_and_options, &@args.block)
  end
end

#drawObject



4
5
# File 'lib/envandle/elements/git_source_block.rb', line 4

def draw
end

#history_argsetsObject



17
18
19
20
21
# File 'lib/envandle/elements/git_source_block.rb', line 17

def history_argsets
  @history_argsets ||= [].tap do |a|
    a << Argset.new(:git_source, *@args.args_and_options, @args.block.class.name)
  end
end

#typeObject



7
8
9
# File 'lib/envandle/elements/git_source_block.rb', line 7

def type
  :git_source_block
end