Module: RideTheStreetcar::StatementsList

Included in:
DSL
Defined in:
lib/ride_the_streetcar/statements_list.rb

Defined Under Namespace

Classes: Navigate

Instance Method Summary collapse

Instance Method Details

#[](selectors) ⇒ Object



21
# File 'lib/ride_the_streetcar/statements_list.rb', line 21

def [](selectors) = query_selector(selectors)

#applyObject



30
# File 'lib/ride_the_streetcar/statements_list.rb', line 30

def apply(...) = Apply.new(...).tap { statements << _1 }

#consoleObject



28
# File 'lib/ride_the_streetcar/statements_list.rb', line 28

def console = Console.new.tap { statements << _1 }

#customObject



36
# File 'lib/ride_the_streetcar/statements_list.rb', line 36

def custom(...) = Custom.new(...).tap { statements << _1 }

#jsObject



34
# File 'lib/ride_the_streetcar/statements_list.rb', line 34

def js = JS.new.tap { statements << _1 }


38
# File 'lib/ride_the_streetcar/statements_list.rb', line 38

def navigate(href) = Navigate.new(href:).tap { statements << _1 }

#query_selector(selectors) ⇒ Object Also known as: q



18
# File 'lib/ride_the_streetcar/statements_list.rb', line 18

def query_selector(selectors) = QuerySelector.new(selectors).tap { statements << _1 }

#query_selector_all(selectors) ⇒ Object Also known as: q_all



23
24
# File 'lib/ride_the_streetcar/statements_list.rb', line 23

def query_selector_all(selectors) =
QuerySelector.new(selectors, all: true).tap { statements << _1 }

#set_propertyObject



32
# File 'lib/ride_the_streetcar/statements_list.rb', line 32

def set_property(...) = SetProperty.new(...).tap { statements << _1 }