class SquareGraph::Face
Attributes
object[RW]
x[RW]
y[RW]
Public Class Methods
new(x, y, object)
click to toggle source
# File lib/square_graph/face.rb, line 3 def initialize(x, y, object) @x = x @y = y @object = object end
Public Instance Methods
truthy?(&alt)
click to toggle source
# File lib/square_graph/face.rb, line 9 def truthy?(&alt) if alt return alt.call(object) end (object == true) || (object.truthy? if object.respond_to? :truthy?) end