Class: RemoteRuby::Flavour
- Inherits:
-
Object
- Object
- RemoteRuby::Flavour
- Defined in:
- lib/remote_ruby/flavour.rb
Overview
Base class for Flavours: addons to execution context to insert additonal code to the generated remote code.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #code_header ⇒ Object
-
#initialize(**args) ⇒ Flavour
constructor
A new instance of Flavour.
Constructor Details
#initialize(**args) ⇒ Flavour
Returns a new instance of Flavour.
21 |
# File 'lib/remote_ruby/flavour.rb', line 21 def initialize(**args); end |
Class Method Details
.build_flavours(args = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/remote_ruby/flavour.rb', line 7 def self.build_flavours(args = {}) res = [] { rails: RemoteRuby::RailsFlavour }.each do |name, klass| = args.delete(name) res << klass.new(**) if end res end |
Instance Method Details
#code_header ⇒ Object
23 |
# File 'lib/remote_ruby/flavour.rb', line 23 def code_header; end |