module DTK::DSL::FileGenerator::ContentInput::Mixin
Attributes
Public Instance Methods
id_handle()
click to toggle source
# File lib/dsl/file_generator/content_input/mixin.rb, line 32 def id_handle @id_handle || raise(Error,"@id_handle is not set") end
matches_tag_type?(tag_type)
click to toggle source
# File lib/dsl/file_generator/content_input/mixin.rb, line 45 def matches_tag_type?(tag_type) !! @tags.find { |tag| Tag.matches_tag_type?(tag_type, tag) } end
obj_has_tag_type?(obj, tag_type)
click to toggle source
# File lib/dsl/file_generator/content_input/mixin.rb, line 54 def obj_has_tag_type?(obj, tag_type) if obj.respond_to?(:matches_tag_type?) obj.matches_tag_type?(tag_type) else # vacuously succeeds true end end
set_id_handle(model_object)
click to toggle source
# File lib/dsl/file_generator/content_input/mixin.rb, line 28 def set_id_handle(model_object) @id_handle = model_object.id_handle end