File: glue.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-- 311 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 Glue
      attr_reader :nodes, :data

      def initialize(template)
        @nodes  = template.nodes
        @data   = template.data
        @is_var = @data.to_s.start_with?('@')
      end

      def instance_variable_data?
        @is_var
      end
    end
  end
end