Sha256: 00836b4d323bf8d6dd8c2d9a7400c61276608865ee65b7cafc5ab043c5fac28e

Contents?: true

Size: 344 Bytes

Versions: 14

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

# DSL#target
module DSL
  def readme(_text)
    # Usefull only for "teuton reamde" command action.
  end

  def target(desc, args = {})
    @action[:description] = desc.to_s
    @action[:asset] = args[:asset].to_s if args[:asset]
    w = args[:weight] || 1.0
    weight(w)
  end
  alias_method :goal, :target
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
teuton-2.9.2 lib/teuton/case/dsl/target.rb
teuton-2.9.1 lib/teuton/case/dsl/target.rb
teuton-2.9.0 lib/teuton/case/dsl/target.rb
teuton-2.8.0 lib/teuton/case/dsl/target.rb
teuton-2.7.3 lib/teuton/case/dsl/target.rb
teuton-2.7.2 lib/teuton/case/dsl/target.rb
teuton-2.7.1 lib/teuton/case/dsl/target.rb
teuton-2.7.0 lib/teuton/case/dsl/target.rb
teuton-2.6.0 lib/teuton/case/dsl/target.rb
teuton-2.5.0 lib/teuton/case_manager/case/dsl/target.rb
teuton-2.4.5 lib/teuton/case_manager/case/dsl/target.rb
teuton-2.4.4 lib/teuton/case_manager/case/dsl/target.rb
teuton-2.4.3 lib/teuton/case_manager/case/dsl/target.rb
teuton-2.4.2 lib/teuton/case_manager/case/dsl/target.rb