Class: Mago::MagicNumber

Inherits:
Object
  • Object
show all
Defined in:
lib/mago/magic_number.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ MagicNumber

Returns a new instance of MagicNumber.



7
8
9
10
11
# File 'lib/mago/magic_number.rb', line 7

def initialize(attrs = {})
  attrs.each do |attr, value|
    send("#{attr}=", value)
  end
end

Instance Attribute Details

#fileObject

Returns the value of attribute file.



5
6
7
# File 'lib/mago/magic_number.rb', line 5

def file
  @file
end

#lineObject

Returns the value of attribute line.



4
5
6
# File 'lib/mago/magic_number.rb', line 4

def line
  @line
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/mago/magic_number.rb', line 3

def value
  @value
end