Class: Expressir::Liquid::Declarations::SubtypeConstraintDrop
Instance Method Summary
collapse
#id, #initialize_identifier, #remark_items, #remarks, #source
#_class, #file, #source
Constructor Details
Returns a new instance of SubtypeConstraintDrop.
9
10
11
12
13
|
# File 'lib/expressir/liquid/declarations/subtype_constraint_drop.rb', line 9
def initialize(model)
@model = model
initialize_identifier(@model)
super
end
|
Instance Method Details
#abstract ⇒ Object
19
20
21
|
# File 'lib/expressir/liquid/declarations/subtype_constraint_drop.rb', line 19
def abstract
@model.abstract
end
|
#applies_to ⇒ Object
15
16
17
|
# File 'lib/expressir/liquid/declarations/subtype_constraint_drop.rb', line 15
def applies_to
drop_klass_by_model(@model.applies_to)
end
|
#supertype_expression ⇒ Object
31
32
33
|
# File 'lib/expressir/liquid/declarations/subtype_constraint_drop.rb', line 31
def supertype_expression
drop_klass_by_model(@model.supertype_expression)
end
|
#total_over ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/expressir/liquid/declarations/subtype_constraint_drop.rb', line 23
def total_over
return [] unless @model.total_over
@model.total_over.map do |item|
drop_klass_by_model(item)
end
end
|