class Object

Public Instance Methods

interface(name, &block) click to toggle source
# File lib/vidalia/dsl.rb, line 1
def interface(name, &block)
  inter_def = Vidalia::InterfaceDefinition.new(name: name)
  inter_def.instance_eval &block if block

  # object and element will return Vidalia::Object and Vidalia::Element objects,
  # respectively. Returning a Vidalia::Interface object makes sense here for
  # consistency
  inter_def.interface
end