class SML::ValueEntry
Attributes
signature[RW]
value[RW]
value_type[RW]
Public Class Methods
construct(array_rep)
click to toggle source
# File lib/ruby-sml/sml-valueentry.rb, line 14 def self.construct(array_rep) return nil if array_rep.nil? value = array_rep.shift value_type = array_rep.shift signature = array_rep.shift return nil if value.nil? return SML::ValueEntry.new(value, value_type, signature) end
new(value, value_type, signature)
click to toggle source
# File lib/ruby-sml/sml-valueentry.rb, line 8 def initialize(value, value_type, signature) @value = value @value_type = value_type @signature = signature end
Public Instance Methods
to_a()
click to toggle source
# File lib/ruby-sml/sml-valueentry.rb, line 23 def to_a return [] << value << value_type << signature end