Class: Netzke::Core::ClientClassConfig
- Inherits:
-
Object
- Object
- Netzke::Core::ClientClassConfig
- Defined in:
- lib/marty/monkey.rb
Instance Method Summary collapse
-
#override_from_file(path) ⇒ Object
FIXME: move to Netzke This fix removes ; in the end of JS code that is required by JS linters And adds new line before closing bracket, so that if there is a comment in the end of file, it won’t break the code.
Instance Method Details
#override_from_file(path) ⇒ Object
FIXME: move to Netzke This fix removes ; in the end of JS code that is required by JS linters And adds new line before closing bracket, so that if there is a comment in the end of file, it won’t break the code.
386 387 388 389 390 391 392 |
# File 'lib/marty/monkey.rb', line 386 def override_from_file(path) str = File.read(path) str.chomp!("\n") str.chomp!(';') %{#{class_name}.override(#{str} );} end |