Class: SqlMunger::FieldSet::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/sql_munger/field_set.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Field

Returns a new instance of Field.



24
25
26
# File 'lib/sql_munger/field_set.rb', line 24

def initialize( name )
  @name = name.to_sym
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



27
28
29
# File 'lib/sql_munger/field_set.rb', line 27

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
# File 'lib/sql_munger/field_set.rb', line 29

def ==( other )
  name == other.name
end