Class: Expressir::Liquid::ModelElementDrop
- Inherits:
-
Liquid::Drop
- Object
- Liquid::Drop
- Expressir::Liquid::ModelElementDrop
show all
- Defined in:
- lib/expressir/liquid/model_element_drop.rb
Direct Known Subclasses
CacheDrop, DataTypeDrop, DeclarationDrop, Declarations::InterfaceItemDrop, Declarations::InterfacedItemDrop, Declarations::SchemaVersionDrop, Declarations::SchemaVersionItemDrop, ExpressionDrop, LiteralDrop, ReferenceDrop, RepositoryDrop, StatementDrop, SupertypeExpressionDrop
Instance Method Summary
collapse
Constructor Details
rubocop:disable Lint/MissingSuper
6
7
8
|
# File 'lib/expressir/liquid/model_element_drop.rb', line 6
def initialize(model) @model = model
end
|
Instance Method Details
#_class ⇒ Object
10
11
12
|
# File 'lib/expressir/liquid/model_element_drop.rb', line 10
def _class
@model.class.name
end
|
#file ⇒ Object
14
15
16
|
# File 'lib/expressir/liquid/model_element_drop.rb', line 14
def file
@model.file if @model.respond_to?(:file)
end
|
#source ⇒ Object
18
19
20
|
# File 'lib/expressir/liquid/model_element_drop.rb', line 18
def source
@model.source if @model.respond_to?(:source)
end
|