```ruby
module C2y
  class DSL::Context::Unit
    attr_reader :result

    def initialize(name, &block)
      @result = OpenStruct.new({
        name: name
      })

      instance_eval(&block)
    end

    private

    def command(unit_command)
      @result.command = unit_command.to_s
    end

    def content(unit_content)
      @result.content = unit_content
    end

    def enable(unit_enable)
      @result.enable = unit_enable
    end
  end
end
```

Use dynamic method definition in Unit
user
```ruby
module C2y
  class DSL::Context::Unit
    attr_reader :result

    def initialize(name, &block)
      @result = OpenStruct.new({
        name: name
      })

      instance_eval(&block)
    end

    [:command, :content, :enable].each do |attr|
      define_method(attr) do |arg|
        @result.send("#{attr}=", arg)
      end

      private attr
    end
  end
end
```
assistant