Class: Expressir::Liquid::ModelElementDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/expressir/liquid/model_element_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ ModelElementDrop

rubocop:disable Lint/MissingSuper



6
7
8
# File 'lib/expressir/liquid/model_element_drop.rb', line 6

def initialize(model) # rubocop:disable Lint/MissingSuper
  @model = model
end

Instance Method Details

#_classObject



10
11
12
# File 'lib/expressir/liquid/model_element_drop.rb', line 10

def _class
  @model.class.name
end

#fileObject



14
15
16
# File 'lib/expressir/liquid/model_element_drop.rb', line 14

def file
  @model.file if @model.respond_to?(:file)
end

#sourceObject



18
19
20
# File 'lib/expressir/liquid/model_element_drop.rb', line 18

def source
  @model.source if @model.respond_to?(:source)
end