Module: Ccls::ActionViewExtension::Base::InstanceMethods

Defined in:
lib/ccls_engine/action_view_extension/base.rb

Instance Method Summary collapse

Instance Method Details

#_wrapped_adna_spans(object_name, method, options = {}) ⇒ Object



43
44
45
46
47
# File 'lib/ccls_engine/action_view_extension/base.rb', line 43

def _wrapped_adna_spans(object_name,method,options={})
	object = instance_variable_get("@#{object_name}")
	_wrapped_spans(object_name,method,options.update(
		:value => (ADNA[object.send(method)]||' ') ) )
end

#_wrapped_yndk_spans(object_name, method, options = {}) ⇒ Object



25
26
27
28
29
# File 'lib/ccls_engine/action_view_extension/base.rb', line 25

def _wrapped_yndk_spans(object_name,method,options={})
	object = instance_variable_get("@#{object_name}")
	_wrapped_spans(object_name,method,options.update(
		:value => (YNDK[object.send(method)]||' ') ) )
end

#_wrapped_ynodk_spans(object_name, method, options = {}) ⇒ Object



31
32
33
34
35
# File 'lib/ccls_engine/action_view_extension/base.rb', line 31

def _wrapped_ynodk_spans(object_name,method,options={})
	object = instance_variable_get("@#{object_name}")
	_wrapped_spans(object_name,method,options.update(
		:value => (YNODK[object.send(method)]||' ') ) )
end

#_wrapped_ynrdk_spans(object_name, method, options = {}) ⇒ Object



37
38
39
40
41
# File 'lib/ccls_engine/action_view_extension/base.rb', line 37

def _wrapped_ynrdk_spans(object_name,method,options={})
	object = instance_variable_get("@#{object_name}")
	_wrapped_spans(object_name,method,options.update(
		:value => (YNRDK[object.send(method)]||' ') ) )
end

#adna(value = nil) ⇒ Object



21
22
23
# File 'lib/ccls_engine/action_view_extension/base.rb', line 21

def adna(value=nil)
	ADNA[value]||' '
end

#yndk(value = nil) ⇒ Object



9
10
11
# File 'lib/ccls_engine/action_view_extension/base.rb', line 9

def yndk(value=nil)
	YNDK[value]||' '
end

#ynodk(value = nil) ⇒ Object



13
14
15
# File 'lib/ccls_engine/action_view_extension/base.rb', line 13

def ynodk(value=nil)
	YNODK[value]||' '
end

#ynrdk(value = nil) ⇒ Object



17
18
19
# File 'lib/ccls_engine/action_view_extension/base.rb', line 17

def ynrdk(value=nil)
	YNRDK[value]||' '
end