class Mexico::FileSystem::Property
This class provides a corpus representation that is backed up by the filesystem. A central Corpus definition file in the top-level folder contains an XML representation of the corpus structure, and all actual resources are found as files on a file system reachable from the top-level folder.
Public Class Methods
new(arg1=nil, arg2=nil)
click to toggle source
# File lib/mexico/file_system/property.rb, line 33 def initialize(arg1=nil, arg2=nil) puts "Property init - %s : %s" % [arg1, arg2] if arg1.respond_to?(:has_key?) args.each do |k,v| if self.respond_to?("#{k}=") send("#{k}=", v) end end else unless (arg1.nil? || arg2.nil?) self.key = arg1 self.value = arg2 end end end