Class: Rfm::Metadata::Script

Inherits:
Object
  • Object
show all
Defined in:
lib/rfm/metadata/script.rb

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

Instance Method Summary collapse

Constructor Details

#initialize(name, db_obj) ⇒ 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

#nameObject (readonly)

Returns the value of attribute name



18
19
20
# File 'lib/rfm/metadata/script.rb', line 18

def name
  @name
end