File: code.rb

package info (click to toggle)
ruby-rabl-rails 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 288 kB
  • sloc: ruby: 1,630; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module RablRails
  module Nodes
    class Code
      attr_reader :name, :block, :condition

      def initialize(name, block, condition = nil)
        @name = name
        @block = block
        @condition = condition
      end

      def merge?
        !name
      end
    end
  end
end