Class: Mexico::FileSystem::Property
- Inherits:
-
Object
- Object
- Mexico::FileSystem::Property
- Includes:
- ROXML
- Defined in:
- lib/mexico/file_system/property.rb
Overview
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.
Instance Method Summary collapse
-
#initialize(arg1 = nil, arg2 = nil) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(arg1 = nil, arg2 = nil) ⇒ Property
Returns a new instance of Property.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# 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 |