Top Level Namespace
Defined Under Namespace
Modules: Vidalia
Instance Method Summary collapse
Instance Method Details
#interface(name, &block) ⇒ Object
1 2 3 4 5 6 7 8 9 |
# 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 |