Class: Expressir::Liquid::DataTypes::StringDrop

Inherits:
Expressir::Liquid::DataTypeDrop show all
Defined in:
lib/expressir/liquid/data_types/string_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

Constructor Details

#initialize(model) ⇒ StringDrop

Returns a new instance of StringDrop.



7
8
9
10
# File 'lib/expressir/liquid/data_types/string_drop.rb', line 7

def initialize(model)
  @model = model
  super
end

Instance Method Details

#fixedObject



16
17
18
# File 'lib/expressir/liquid/data_types/string_drop.rb', line 16

def fixed
  @model.fixed
end

#widthObject



12
13
14
# File 'lib/expressir/liquid/data_types/string_drop.rb', line 12

def width
  drop_klass_by_model(@model.width)
end