class Flor::Pointer
Public Instance Methods
att_texts()
click to toggle source
# File lib/flor/unit/models/pointer.rb, line 58 def att_texts attl.select { |e| e.is_a?(String) } end
attd()
click to toggle source
# File lib/flor/unit/models/pointer.rb, line 44 def attd data['atts'].inject({}) { |h, (k, v)| h[k] = v if k; h } rescue; [] end
attl()
click to toggle source
# File lib/flor/unit/models/pointer.rb, line 51 def attl data['atts'].inject([]) { |a, (k, v)| a << v if k == nil; a } rescue; [] end
fei()
click to toggle source
create_table :flor_pointers do
primary_key :id, type: :Integer String :domain, null: false String :exid, null: false String :nid, null: false String :type, null: false # task, tasked, tag, var String :name, null: false # task name, tasked name, tag name, var name String :value File :content String :ctime, null: false # no :status, no :mtime index :exid index [ :exid, :nid ] index [ :type, :name, :value ] String :cunit String :munit #unique [ :exid, :type, :name, :value ] # we don't care, pointers are cleaned anyway when the flow dies
end
# File lib/flor/unit/models/pointer.rb, line 32 def fei; [ exid, nid ].join('-'); end
full_value()
click to toggle source
If the pointer is a “var” pointer, returns the full value for the variable, as found in the execution’s node “0”.
# File lib/flor/unit/models/pointer.rb, line 37 def full_value return nil unless type == 'var' node['vars'][name] end