Module: Expressir::Liquid::IdentifierDrop
- Included in:
- DataTypes::AggregateDrop, DataTypes::EnumerationItemDrop, DataTypes::GenericDrop, DataTypes::GenericEntityDrop, Declarations::AttributeDrop, Declarations::ConstantDrop, Declarations::EntityDrop, Declarations::FunctionDrop, Declarations::ParameterDrop, Declarations::ProcedureDrop, Declarations::RuleDrop, Declarations::SchemaDrop, Declarations::SubtypeConstraintDrop, Declarations::TypeDrop, Declarations::UniqueRuleDrop, Declarations::VariableDrop, Declarations::WhereRuleDrop, Expressions::QueryExpressionDrop, Statements::AliasDrop, Statements::RepeatDrop
- Defined in:
- lib/expressir/liquid/identifier_drop.rb
Instance Method Summary collapse
- #id ⇒ Object
- #initialize_identifier(model) ⇒ Object
- #remark_items ⇒ Object
- #remarks ⇒ Object
- #source ⇒ Object
Instance Method Details
#id ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/identifier_drop.rb', line 12 def id @model.id end |
#initialize_identifier(model) ⇒ Object
8 9 10 |
# File 'lib/expressir/liquid/identifier_drop.rb', line 8 def initialize_identifier(model) @model = model end |
#remark_items ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/expressir/liquid/identifier_drop.rb', line 20 def remark_items return [] unless @model.remark_items @model.remark_items.map do |item| ::Expressir::Liquid::RemarkItemDrop.new(item) end end |
#remarks ⇒ Object
16 17 18 |
# File 'lib/expressir/liquid/identifier_drop.rb', line 16 def remarks @model.remarks || [] end |
#source ⇒ Object
28 29 30 |
# File 'lib/expressir/liquid/identifier_drop.rb', line 28 def source @model.source end |