File: attribute.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 (17 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'forwardable'

module RablRails
  module Nodes
    class Attribute
      include Node
      extend Forwardable

      def_delegators :@hash, :[]=, :each
      attr_reader :hash

      def initialize(hash = {})
        @hash = hash
      end
    end
  end
end