class Trestle::Attribute
Attributes
name[R]
options[R]
type[R]
Public Class Methods
new(name, type, options={})
click to toggle source
# File lib/trestle/attribute.rb, line 5 def initialize(name, type, options={}) @name, @type, @options = name.to_sym, type, options end
Public Instance Methods
array?()
click to toggle source
# File lib/trestle/attribute.rb, line 9 def array? options[:array] == true end