Module: Fictium::RSpec::Autocomplete::Action

Defined in:
lib/fictium/rspec/autocomplete/action.rb

Constant Summary collapse

ACTION_NAME =
/#([A-Z_]+)/i.freeze

Class Method Summary collapse

Class Method Details

.description_attributes(action, description) ⇒ Object



8
9
10
11
# File 'lib/fictium/rspec/autocomplete/action.rb', line 8

def description_attributes(action, description)
  name = find_action_name(description)&.downcase
  find_summary(action, name)
end