Class: Value
Class Method Summary collapse
Methods inherited from Base
add_output, change, create_output, global_variable, global_variable=, init, load, output, output_endings, #output_types, type_from_ending
Class Method Details
.create(source, instance, options = {}) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/libisi/value.rb', line 22 def self.create(source, instance, = {}) case source.class.name when /Attribute/,/Property/ BaseValue.new(source, instance, ) else raise "Unexpected source for new value #{source.class.name}" end end |