Sha256: 2383bcc289486add3c71ba398ca945b4b2e79e2deb7f99058e00b2fd26eff673

Contents?: true

Size: 397 Bytes

Versions: 12

Compression:

Stored size: 397 Bytes

Contents

module CrossOrigen
  class Ralf
    # Returns the object that included the CrossOrigen module
    attr_reader :owner

    def initialize(owner)
      @owner = owner
    end

    # Returns a string representing the owner object in RALF format
    def owner_to_ralf(options = {})
      Origen.compile("#{Origen.root!}/templates/ralf/default.ralf.erb", options.merge(scope: owner))
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cross_origen-1.4.0 lib/cross_origen/ralf.rb
cross_origen-1.3.0 lib/cross_origen/ralf.rb
cross_origen-1.2.3 lib/cross_origen/ralf.rb
cross_origen-1.2.2 lib/cross_origen/ralf.rb
cross_origen-1.2.1 lib/cross_origen/ralf.rb
cross_origen-1.2.0 lib/cross_origen/ralf.rb
cross_origen-1.1.0 lib/cross_origen/ralf.rb
cross_origen-1.0.0 lib/cross_origen/ralf.rb
cross_origen-0.7.0 lib/cross_origen/ralf.rb
cross_origen-0.6.1 lib/cross_origen/ralf.rb
cross_origen-0.6.0 lib/cross_origen/ralf.rb
cross_origen-0.5.0 lib/cross_origen/ralf.rb