Sha256: fca9e5b9bf194c562ffe8e1bc5f6f9aea186992e3486dd682a06668e150ed989
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
require 'vedeu/dsl/shared/all' module Vedeu module DSL # Provides methods to be used to define views. # # @api public class Stream include Vedeu::DSL include Vedeu::DSL::Colour include Vedeu::DSL::Style include Vedeu::DSL::Text # Returns an instance of DSL::Stream. # # @param model [Vedeu::Stream] def initialize(model, client = nil) @model = model @client = client end def stream(&block) fail InvalidSyntax, 'block not given' unless block_given? model.add(model.class.build(attributes, &block)) end private attr_reader :client, :model # @return [Hash] def attributes { client: client, parent: model.parent, } end end # Stream end # DSL end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.1 | lib/vedeu/dsl/stream.rb |