class DSL
Attributes
attributes[R]
Public Class Methods
new()
click to toggle source
# File lib/interface_semantics.rb, line 62 def initialize @attributes = [] end
run(&block)
click to toggle source
# File lib/interface_semantics.rb, line 56 def self.run(&block) dsl = new dsl.instance_eval(&block) dsl.attributes end
Public Instance Methods
method_missing(name, *args, **kwargs)
click to toggle source
# File lib/interface_semantics.rb, line 66 def method_missing(name, *args, **kwargs) attributes << Attribute.new(name, args[0..-2], args.last) end