Class: Sym

Inherits:
String show all
Defined in:
lib/object_extensions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from String

#to_html

Methods included from Callable

#call, #call_as

Instance Attribute Details

#fileObject

Returns the value of attribute file


2
3
4
# File 'lib/object_extensions.rb', line 2

def file
  @file
end

#lineObject

Returns the value of attribute line


2
3
4
# File 'lib/object_extensions.rb', line 2

def line
  @line
end

Instance Method Details

#inspectObject


9
10
11
# File 'lib/object_extensions.rb', line 9

def inspect
  self
end

#special_formObject

TODO: refactor?


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

def special_form
  BusScheme[self].special_form
end

#symObject


17
18
19
# File 'lib/object_extensions.rb', line 17

def sym
  self
end

#to_sObject


13
14
15
# File 'lib/object_extensions.rb', line 13

def to_s
  self
end