Class: MasterView::Directives::TestDirective

Inherits:
MasterView::DirectiveBase show all
Defined in:
lib/masterview/directives/testfilter.rb

Constant Summary

Constants included from MasterView::DirectiveHelpers

MasterView::DirectiveHelpers::CRLF, MasterView::DirectiveHelpers::ERB_END, MasterView::DirectiveHelpers::ERB_EVAL, MasterView::DirectiveHelpers::ERB_START

Instance Method Summary collapse

Methods inherited from MasterView::DirectiveBase

#append_to_attr_value!, #attr_lckv_matches, #attr_value, #attr_value=, #attrs, #attrs=, #attrs_lck, #attrs_lckv, #common_html_options, #content, #content=, #content_str, #data, #data=, #erb, #erb_content, full_attr_name, #initialize, #merge_hash_attr_value!, #parse_attr_value, #prepend_to_attr_value!, #quote, register_directive, #remove_strings_from_attr_value!, #save_directive_call_stack, #tag_name, #tag_name=

Methods included from MasterView::DirectiveHelpers

#delete_last_in_parent, #find_last_in_parent, #find_string_val_in_string_hash, #lowercase_attribute_keys, #lowercase_attribute_keys_and_values, #merge_into_embedded_hash, #parse, #parse_eval_into_array, #parse_eval_into_hash, #remove_prepended_strings

Methods included from PluginLoadTracking

included

Constructor Details

This class inherits a constructor from MasterView::DirectiveBase

Instance Method Details

#cdata(dcs) ⇒ Object



28
29
30
31
32
# File 'lib/masterview/directives/testfilter.rb', line 28

def cdata(dcs)
  ret = []
  ret << 'cdata'
  ret << dcs.render
end

#characters(dcs) ⇒ Object



16
17
18
19
20
# File 'lib/masterview/directives/testfilter.rb', line 16

def characters(dcs)
  ret = []
  ret << 'char' 
  ret << dcs.render
end

#child_title_etag(dcs) ⇒ Object



47
48
49
50
51
# File 'lib/masterview/directives/testfilter.rb', line 47

def child_title_etag(dcs)
  dcs.context[:tag].content = @attribute_value
  ret = []
  ret << dcs.render
end

#child_title_stag(dcs) ⇒ Object



41
42
43
44
45
# File 'lib/masterview/directives/testfilter.rb', line 41

def child_title_stag(dcs)
  ret = []
  ret << 'desctitle'
  ret << dcs.render
end

#comment(dcs) ⇒ Object



22
23
24
25
26
# File 'lib/masterview/directives/testfilter.rb', line 22

def comment(dcs)
  ret = []
  ret << 'com'
  ret << dcs.render
end

#etag(dcs) ⇒ Object



34
35
36
37
38
39
# File 'lib/masterview/directives/testfilter.rb', line 34

def etag(dcs)
  ret = []
  ret << 'etag'
  ret << dcs.render
  ret << 'etagend'
end

#priorityObject



5
6
7
# File 'lib/masterview/directives/testfilter.rb', line 5

def priority
  DirectivePriorities::Low
end

#stag(dcs) ⇒ Object



9
10
11
12
13
14
# File 'lib/masterview/directives/testfilter.rb', line 9

def stag(dcs)
  ret = []
  ret << 'stag'
  ret << dcs.render
  ret << 'stagend'
end