Sha256: 58fca78f32c8473e81d0819f2cb8008e401e0276391b65fc836c9e954047431f
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module Rfm module Metadata # The ValueListItem object represents an item in a Filemaker value list. # ValueListItem is subclassed from String, so you can use it just like # a string. It does have three additional methods to help separate Filemaker *value* # vs *display* items. # # Getting values vs display items: # # * *#value* the value list item value # # * *#display* is the value list item display. It could be the same # as +value+, or it could be the "second field", if that option is checked in Filemaker # # * *#value_list_name* is the name of the parent value list, if any class ValueListItem < String # TODO: re-instate saving of value_list_name. attr_reader :value, :display, :value_list_name # def initialize(value, display, value_list_name) # @value_list_name = value_list_name # @value = value.to_s # @display = display.to_s # self.replace @value # end end # ValueListItem end # Metadata end # Rfm
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ginjo-rfm-3.0.12 | lib/rfm/metadata/value_list_item.rb |
ginjo-rfm-3.0.11 | lib/rfm/metadata/value_list_item.rb |
ginjo-rfm-3.0.10 | lib/rfm/metadata/value_list_item.rb |