Class: Rfm::Metadata::Script
Overview
The Script object represents a FileMaker script. At this point, the Script object exists only so you can enumrate all scripts in a Database (which is a rare need):
myDatabase.script.each {|script|
puts script.name
}
If you want to run a script, see the Layout object instead.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, db_obj) ⇒ Script
constructor
A new instance of Script.
Constructor Details
#initialize(name, db_obj) ⇒ Script
Returns a new instance of Script.
12 13 14 15 |
# File 'lib/rfm/metadata/script.rb', line 12 def initialize(name, db_obj) @name = name self.db = db_obj end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/rfm/metadata/script.rb', line 18 def name @name end |