Class: Appscript::GenericApplication

Inherits:
GenericReference show all
Defined in:
lib/rb-scpt.rb

Constant Summary

Constants inherited from AS_SafeObject

AS_SafeObject::EXCLUDE

Instance Method Summary collapse

Methods inherited from GenericReference

#==, #AS_resolve, #hash, #inspect, #method_missing, #to_s

Methods inherited from AS_SafeObject

hide

Constructor Details

#initialize(app_class) ⇒ GenericApplication

Returns a new instance of GenericApplication.



924
925
926
927
# File 'lib/rb-scpt.rb', line 924

def initialize(app_class)
  @_app_class = app_class
  super(['app'])
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Appscript::GenericReference

Instance Method Details

#by_aem_app(aem_app, terms = true) ⇒ Object



949
950
951
# File 'lib/rb-scpt.rb', line 949

def by_aem_app(aem_app, terms=true)
  return @_app_class.by_aem_app(aem_app, terms)
end

#by_creator(creator, terms = true) ⇒ Object



937
938
939
# File 'lib/rb-scpt.rb', line 937

def by_creator(creator, terms=true)
  return @_app_class.by_creator(creator, terms)
end

#by_id(id, terms = true) ⇒ Object



933
934
935
# File 'lib/rb-scpt.rb', line 933

def by_id(id, terms=true)
  return @_app_class.by_id(id, terms)
end

#by_name(name, terms = true) ⇒ Object



929
930
931
# File 'lib/rb-scpt.rb', line 929

def by_name(name, terms=true)
  return @_app_class.by_name(name, terms)
end

#by_pid(pid, terms = true) ⇒ Object



941
942
943
# File 'lib/rb-scpt.rb', line 941

def by_pid(pid, terms=true)
  return @_app_class.by_pid(pid, terms)
end

#by_url(url, terms = true) ⇒ Object



945
946
947
# File 'lib/rb-scpt.rb', line 945

def by_url(url, terms=true)
  return @_app_class.by_url(url, terms)
end

#current(terms = true) ⇒ Object



953
954
955
# File 'lib/rb-scpt.rb', line 953

def current(terms=true)
  return @_app_class.current(terms)
end