Class: App::Components::Example
- Inherits:
-
Object
- Object
- App::Components::Example
- Includes:
- Opal::Connect
- Defined in:
- app/components/example.rb
Constant Summary
Constants included from Opal::Connect
Opal::Connect::CLIENT_OPTIONS, Opal::Connect::STUBS, Opal::Connect::VERSION
Instance Method Summary collapse
Methods included from Opal::Connect
client_options, files, included, options, setup, stubbed_files
Methods included from Opal::Connect::ConnectPlugins::Base::ClassMethods
#build, #builder, #included_files, #javascript, #plugin, #plugin_paths, #read_file, #render, #setup, #write_entry_file, #write_file
Instance Method Details
#display ⇒ Object
24 25 26 27 28 29 30 |
# File 'app/components/example.rb', line 24 def display if RUBY_ENGINE == 'opal' dom.find('body').append 'cow' end dom end |
#moo ⇒ Object
32 33 34 35 |
# File 'app/components/example.rb', line 32 def moo dom.find('body').append 'cow' 'cow' end |