Class: Expressir::Liquid::Declarations::AttributeDrop
Instance Method Summary
collapse
#id, #initialize_identifier, #remark_items, #remarks, #source
#_class, #file, #source
Constructor Details
Returns a new instance of AttributeDrop.
9
10
11
12
13
|
# File 'lib/expressir/liquid/declarations/attribute_drop.rb', line 9
def initialize(model)
@model = model
initialize_identifier(@model)
super
end
|
Instance Method Details
#expression ⇒ Object
31
32
33
|
# File 'lib/expressir/liquid/declarations/attribute_drop.rb', line 31
def expression
drop_klass_by_model(@model.expression)
end
|
#kind ⇒ Object
15
16
17
|
# File 'lib/expressir/liquid/declarations/attribute_drop.rb', line 15
def kind
@model.kind
end
|
#optional ⇒ Object
23
24
25
|
# File 'lib/expressir/liquid/declarations/attribute_drop.rb', line 23
def optional
@model.optional
end
|
#supertype_attribute ⇒ Object
19
20
21
|
# File 'lib/expressir/liquid/declarations/attribute_drop.rb', line 19
def supertype_attribute
drop_klass_by_model(@model.supertype_attribute)
end
|
#type ⇒ Object
27
28
29
|
# File 'lib/expressir/liquid/declarations/attribute_drop.rb', line 27
def type
drop_klass_by_model(@model.type)
end
|