File: code.rb

package info (click to toggle)
ruby-rabl-rails 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 268 kB
  • ctags: 179
  • sloc: ruby: 1,480; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module RablRails
  module Nodes
    class Code
      include Node

      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