Module: RideTheStreetcar

Defined in:
lib/ride_the_streetcar.rb,
lib/ride_the_streetcar/js.rb,
lib/ride_the_streetcar/dsl.rb,
lib/ride_the_streetcar/apply.rb,
lib/ride_the_streetcar/custom.rb,
lib/ride_the_streetcar/console.rb,
lib/ride_the_streetcar/version.rb,
lib/ride_the_streetcar/class_list.rb,
lib/ride_the_streetcar/set_property.rb,
lib/ride_the_streetcar/query_selector.rb,
lib/ride_the_streetcar/statements_list.rb

Defined Under Namespace

Modules: StatementsList Classes: Apply, ClassList, Console, Custom, DSL, Error, JS, QuerySelector, SetProperty

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.customize(mod) ⇒ Object

Parameters:

  • mod (Module)


15
16
17
18
19
20
21
22
# File 'lib/ride_the_streetcar.rb', line 15

def self.customize(mod)
  DSL.include mod
  DSL.include mod::GlobalStatements if mod.const_defined?(:GlobalStatements)
  QuerySelector.include mod
  QuerySelector.include mod::QueryStatements if mod.const_defined?(:QueryStatements)

  self
end

.dslStreetcarDSL

Provides a new "streetcar" to "ride" (aka the Streetcar DSL)

Returns:

  • (StreetcarDSL)


12
# File 'lib/ride_the_streetcar.rb', line 12

def self.dsl = DSL.new