support/ruby/collins-shell/lib/collins_shell/console/command_helpers.rb
def resolve_asset_tag tag, stack
    Collins::Option(tag).map{|s| s.strip}.filter_not{|s| s.empty?}.get_or_else {
      tag_from_stack stack
    }
  end
# Given a possible string tag and the context stack, find the asset tag
# @param [NilClass,String] tag a possible tag for use
# @param [Array<Binding>] stack the context stack
# @return [String,NilClass] Either the given tag, the tag on the top of the context stack, or nil if neither is available
Given a possible string tag and the context stack, find the asset tag
Given a possible string tag and the context stack find the asset tag
def resolve_asset_tag tag, stack
    Collins::Option(tag).map{|s| s.strip}.filter_not{|s| s.empty?}.get_or_else {
      tag_from_stack stack
    }
  end
def resolve_asset_tag tag , stack Collins :: Option ( tag ) . map { | s | s . strip } . filter_not { | s | s . empty? } . get_or_else { tag_from_stack stack } end
Given a possible string tag and the context stack, find the asset tag
Given a possible string tag and the context stack find the asset tag
Either the given tag, the tag on the top of the context stack, or nil if neither is available
Either the given tag the tag on the top of the context stack or nil if neither is available
String,NilClass
tag
stack
stack the context stack
stack the context stack