class Mago::MagicNumber
Magic number. Contains value of number and line number of source code.
Attributes
line[RW]
@attribute line [Integer] line of source file where the magic number is located
value[RW]
@attribute value [Numeric] magic number itself
Public Class Methods
new(attrs = {})
click to toggle source
@param attrs [Hash]
# File lib/mago/magic_number.rb, line 11 def initialize(attrs = {}) @value = attrs[:value] @line = attrs[:line] end