Class: Hyperlayer::Path
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Hyperlayer::Path
- Defined in:
- app/models/hyperlayer/path.rb
Instance Method Summary collapse
Instance Method Details
#edited ⇒ Object
21 22 23 |
# File 'app/models/hyperlayer/path.rb', line 21 def edited Ast.call(id) end |
#overlay ⇒ Object
13 14 15 |
# File 'app/models/hyperlayer/path.rb', line 13 def BuildFileOverlay.call(path: self) end |
#overlay_code ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'app/models/hyperlayer/path.rb', line 25 def @code = '' events.where(event_type: 'return').each do |event| @code = UpdateCode.call(id, @code, event.method) end @code end |
#set_spec ⇒ Object
7 8 9 10 11 |
# File 'app/models/hyperlayer/path.rb', line 7 def set_spec return unless path.include?('spec') self.spec = true end |