Class: Highway::Steps::Library::LaneStep

Inherits:
Step
  • Object
show all
Defined in:
lib/highway/steps/library/lane.rb

Class Method Summary collapse

Methods inherited from Step

root_parameter

Class Method Details

.nameObject



14
15
16
# File 'lib/highway/steps/library/lane.rb', line 14

def self.name
  "lane"
end

.parametersObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/highway/steps/library/lane.rb', line 18

def self.parameters
  [
    Parameters::Single.new(
      name: "name",
      required: true,
      type: Types::String.new(),
    ),
    Parameters::Single.new(
      name: "options",
      required: false,
      type: Types::Hash.new(Types::Any.new()),
      default: {},
    ),
  ]
end

.run(parameters:, context:, report:) ⇒ Object



34
35
36
# File 'lib/highway/steps/library/lane.rb', line 34

def self.run(parameters:, context:, report:)
  context.run_lane(parameters["name"], options: parameters["options"])
end